Ant Zucaro [Thu, 10 Apr 2014 12:29:50 +0000 (08:29 -0400)]
Add links to the game modes in the stat line.
The implementation of this is a bit funky. See the
comment in main.py for the get_day_summary_stats
function call. Long story short is I picked what I
believe to be the lesser of two evils - I'm
assembling a complex string inside the view instead
of putting a Python code block directly in the template.
Ant Zucaro [Sat, 5 Apr 2014 13:43:18 +0000 (09:43 -0400)]
Reconfigure the day stats line.
It now shows the top five most active game modes and
summarizes the other ones as "other". This way people
can see what's being played dynamically rather than the
three static modes shown before (dm, ctf, duel).
Ant Zucaro [Fri, 4 Apr 2014 21:58:45 +0000 (17:58 -0400)]
Add a daily statline to the home page.
Gets the following aggregate statistics about the past 24 hours:
- the number of active players (day_active_players)
- the number of games (day_games)
- the total number of dm games (day_dm_games)
- the total number of duel games (day_duel_games)
- the total number of ctf games (day_ctf_games)
Cached by the hour, although it is not a terribly expensive query..
Ant Zucaro [Sun, 27 Oct 2013 02:03:02 +0000 (22:03 -0400)]
Add a view to show the most active players.
For the longest time we have had a box on the front page showing
the "most active players" by playing time. We only showed ten at
a time, and I've since received tons of requests for more. This
commit provides that more.
Ant Zucaro [Fri, 6 Sep 2013 13:03:25 +0000 (09:03 -0400)]
Initial version of AJAX chart updates.
The game type icons still look wonky because they are no longer
links. The graph updates but there are errors thrown and the hover
doesn't work. I am probably not updating the chart properly.
Ant Zucaro [Fri, 30 Aug 2013 02:21:06 +0000 (22:21 -0400)]
Initial stacked area chart for damage.
This version doesn't work. It is wanting an entry for every
weapon in every game, and I don't have that yet. I have to loop
over all the weapons present in the set thus far and then create
zero-ed out objects for the games in which certain weapons don't
exist. Sigh - I haven't decided if I want to do this in the view
or in Javascript.
Ant Zucaro [Wed, 28 Aug 2013 02:16:33 +0000 (22:16 -0400)]
Unused files - KILL THEM WITH FIRE!
No really, these files aren't used anymore. Most of them for over
a year! They shouldn't clutter up the existing filesystem. See ya,
old files! We'll meet again sometime in history.
Ant Zucaro [Sun, 11 Aug 2013 14:21:23 +0000 (10:21 -0400)]
Pull the hashkey from the request headers.
Instead of passing the hashkey in the URL itself, it will be passed
via the blind id header similar to submissions. This will help to
ensure that it is a Xonotic client or server making the request.
Ant Zucaro [Sun, 11 Aug 2013 14:08:28 +0000 (10:08 -0400)]
Move the blind_id verification function to util.
Before the only view that was using this function was the
submission view. That is no longer going to be the case, so the
function should be moved to a general purpose area. Util is the
best place for that!
Ant Zucaro [Sat, 20 Jul 2013 11:52:32 +0000 (07:52 -0400)]
A more comprehensive decision tree for team game stats.
If the game mode is CTF, order by caps. If the game mode is CA,
FT, LMS, or KA then order by rounds. Otherwise order by score. This
corresponds to the default settings for team_game_stat rows in the
submission handler.