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
i-pavlov committed Apr 5, 2014
2 parents 0f4ca49 + 840b50a commit 01c3b6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion handlers/statistics/total_statistics_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get(self, *args, **kwargs):
a, b, c, d = [], [], [], []

for el in daily_statistics:
a.append((el.words_used // el.games, el.date.strftime("%Y-%m-%d")))
a.append((el.words_used, el.date.strftime("%Y-%m-%d")))
b.append((el.games, el.date.strftime("%Y-%m-%d")))
c.append((el.players_participated, el.date.strftime("%Y-%m-%d")))
d.append((round(el.total_game_duration / el.games / 60.0, 2), el.date.strftime("%Y-%m-%d")))
Expand Down
8 changes: 3 additions & 5 deletions templates/logs_administration.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
<div class="form-group"><label class="col-sm-2 control-label">{{ a }} + {{ b }} = </label><div class="col-md-2"><input type="text" class="form-control" name="code" placeholder="Введите ответ"></div></div>
<input type="hidden" name="ans" value="{{ a+b }}">
<div class="form-group"><select required name="action">
<option value="1">{{ names[0] }}</option>
<option value="2">{{ names[1] }}</option>
<option value="3">{{ names[2] }}</option>
<option value="4">{{ names[3] }}</option>
<option value="5">{{ names[4] }}</option>
{% for el in names %}
<option value="{{ loop.index }}">{{ el }}</option>
{% endfor %}
</select></div>
<button type="submit" class="btn btn-danger">Выполнить действие</button>
</form>
Expand Down

0 comments on commit 01c3b6d

Please sign in to comment.