Store timestamps as int in db

This commit is contained in:
Lucas Verney 2017-08-31 14:40:33 +02:00
parent 1772cf0321
commit a0b379bfcd
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def update_stations():
"stationsevents(station_id, timestamp, event) " +
"VALUES(?, ?, ?)",
(station["number"],
time.time(),
int(time.time()),
json.dumps(event)))
except KeyError:
c.execute("INSERT INTO " +