Show More
@@ -15,6 +15,7 b'' | |||
|
15 | 15 | <p>{% blocktrans count count=post_count %}{{ count }} message{% plural %}messages{% endblocktrans %}.</p> |
|
16 | 16 | <p>{% trans 'Messages per day/week/month:' %} {{ post_per_day }}/{{ post_per_week }}/{{ post_per_month }}</p> |
|
17 | 17 | <p>{{ platform }}</p> |
|
18 | <p>Python {{ python }}</p> | |
|
18 | 19 | <h2>{% trans 'Authors' %}</h2> |
|
19 | 20 | {% for nick, values in authors.items %} |
|
20 | 21 | <p> |
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | import os |
|
2 | 2 | import platform |
|
3 | import sys | |
|
3 | 4 | |
|
4 | 5 | from django.shortcuts import render |
|
5 | 6 | from django.utils.decorators import method_decorator |
@@ -19,6 +20,7 b" PARAM_POST_PER_DAY = 'post_per_day'" | |||
|
19 | 20 | PARAM_POST_PER_WEEK = 'post_per_week' |
|
20 | 21 | PARAM_POST_PER_MONTH = 'post_per_month' |
|
21 | 22 | PARAM_PLATFORM = 'platform' |
|
23 | PARAM_PYTHON = 'python' | |
|
22 | 24 | |
|
23 | 25 | |
|
24 | 26 | class AuthorsView(BaseBoardView): |
@@ -30,6 +32,9 b' class AuthorsView(BaseBoardView):' | |||
|
30 | 32 | params[PARAM_POST_COUNT] = Post.objects.count() |
|
31 | 33 | |
|
32 | 34 | params[PARAM_PLATFORM] = platform.platform() |
|
35 | python_version = sys.version_info | |
|
36 | params[PARAM_PYTHON] = '{}.{}.{}'.format(python_version.major, | |
|
37 | python_version.minor, python_version.micro) | |
|
33 | 38 | |
|
34 | 39 | params[PARAM_POST_PER_DAY] = Post.objects.get_post_per_days(1) |
|
35 | 40 | params[PARAM_POST_PER_WEEK] = Post.objects.get_post_per_days(7) |
General Comments 0
You need to be logged in to leave comments.
Login now