mirror of
https://github.com/KevinMidboe/homeChecker.git
synced 2025-10-29 17:40:26 +00:00
Changed so that time added to db only has two decimal points.
This commit is contained in:
@@ -65,7 +65,7 @@ def updateTimes():
|
|||||||
online = list(set(getOnlineClients()) & set(getAddr(c)))
|
online = list(set(getOnlineClients()) & set(getAddr(c)))
|
||||||
|
|
||||||
for adr in online:
|
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.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user