Changed so that time added to db only has two decimal points.

This commit is contained in:
2017-02-10 16:44:43 +01:00
parent b61ae873f1
commit a5c16b88c9

View File

@@ -65,7 +65,7 @@ def updateTimes():
online = list(set(getOnlineClients()) & set(getAddr(c)))
for adr in online:
c.execute('UPDATE lastonline SET timesince='+ str(curTime) +' WHERE clientadr="'+ adr + '"')
c.execute('UPDATE lastonline SET timesince='+ str("{:10.2f}".format(curTime)) +' WHERE clientadr="'+ adr + '"')
conn.commit()
conn.close()