Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
nzinov committed May 17, 2014
2 parents 1a5f884 + cf064e4 commit 14dee51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions handlers/statistics/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def get_date(time):

class AddGameHandler(ServiceRequestHandler):
ratings = []

@staticmethod
def check_word(word):
if GlobalDictionaryWord.get(word) is None:
Expand Down
3 changes: 2 additions & 1 deletion handlers/statistics/word.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ def get(self, *args, **kwargs):
rand = q.fetch(limit=10, offset=randint(0, c-10))

self.draw_page('statistics/word_statistic', word=word, word_entity=entity,
top=top, bottom=bottom, rand=rand, danger=danger_top)
top=top if top else [], bottom=bottom if bottom else [], rand=rand if rand else [],
danger=danger_top if danger_top else [])

3 changes: 2 additions & 1 deletion templates/statistics/total_statistic.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,11 @@
<p>
В нашем словаре содержится {{ label(words_in_dictionary, "слово", "слова", "слов") }}.
Из них {{ used_words }} когда-либо объяснялось нашими пользователями.</p>

{% if longest_time %}
<p>
Дольше всего наши пользователи объясняли слово "{{ longest_word }}": {{ time(longest_time) }}
</p>
{% endif %}
</div>
<div class="col-md-6" id="games_for_players" style="height: 400px;"></div>
</div>
Expand Down

0 comments on commit 14dee51

Please sign in to comment.