]> git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/elo.py
Port navigation header from the main site.
[xonotic/xonstat.git] / xonstat / elo.py
index 8293c97f8fa705ebb29c5d81c61ca61d40da8c93..60da5311a15c3bad02a90df3e625979ac9278733 100644 (file)
@@ -1,3 +1,4 @@
+import datetime
 import logging
 import math
 import random
@@ -185,6 +186,7 @@ def update_elos(game, session, elos, scores, ep):
 
         elos[pid].elo = new_elo
         elos[pid].games += 1
+        elos[pid].update_dt = datetime.datetime.utcnow()
 
         log.debug("Setting Player {0}'s Elo delta to {1}. Elo is now {2} (was {3}).".format(pid, elo_deltas[pid], new_elo, old_elo))