From fc21107161b8d554cca928349f3dae0157a26c9b Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 18 Mar 2017 17:40:33 +0100 Subject: add computed_on --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api.py') 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"]) -- cgit v1.3.1