summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-18 17:40:33 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-18 17:40:33 +0100
commitfc21107161b8d554cca928349f3dae0157a26c9b (patch)
tree4e91d63e48354e45e383ff82d51422953f643c3b
parent12ce9bf5e3f07f13a2efa7d50a48a1b62266093c (diff)
downloadcruncher-fc21107161b8d554cca928349f3dae0157a26c9b.tar.gz
cruncher-fc21107161b8d554cca928349f3dae0157a26c9b.zip
add computed_on
-rw-r--r--api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.py b/api.py
index 3979af7..f82cba1 100644
--- a/api.py
+++ b/api.py
@@ -105,8 +105,8 @@ class Cruncher(joblib.worker.Worker):
""", stat["win_rate"], stat["cs_per_min"],
stat["gold_per_min"])
await self._con.fetch("""
- INSERT INTO hero_stats(hero_id, dimension_id, stats_id)
- VALUES($1, $2, $3)
+ INSERT INTO hero_stats(hero_id, dimension_id, stats_id, computed_on)
+ VALUES($1, $2, $3, NOW())
""", stat["id"], dimension["id"],
stat_id["id"])