]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/views/main.py
Initial version of AJAX chart updates.
[xonotic/xonstat.git] / xonstat / views / main.py
index 885110f8cb0b164bf566cd2cdaaddd298128b69f..30833e48838dbd01b9d572c7adb320674b7411c7 100644 (file)
@@ -68,6 +68,10 @@ def get_summary_stats():
 @cache_region('hourly_term')
 def get_ranks(game_type_cd):
     """
+    Gets a set number of the top-ranked people for the specified game_type_cd.
+
+    The game_type_cd parameter is the type to fetch. Currently limited to
+    duel, dm, ctf, and tdm.
     """
     # how many ranks we want to fetch
     leaderboard_count = 10
@@ -181,7 +185,7 @@ def _main_index_data(request):
 
     # the three top ranks tables
     ranks = []
-    for gtc in ['duel', 'ctf', 'dm']:
+    for gtc in ['duel', 'ctf', 'dm', 'tdm']:
         rank = get_ranks(gtc)
         if len(rank) != 0:
             ranks.append(rank)