mirror of
https://github.com/KevinMidboe/homeChecker.git
synced 2025-10-29 01:20:27 +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)))
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user