mirror of
https://github.com/KevinMidboe/homeChecker.git
synced 2025-10-29 17:40:26 +00:00
Changed the print function when adding/updating the db
This commit is contained in:
@@ -71,14 +71,15 @@ def updateTimes():
|
|||||||
conn.commit()
|
conn.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
return ("Updated following clients: " + online)
|
return (online)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if argv[-1] == 'add':
|
if argv[-1] == 'add':
|
||||||
pprint(updateTimes())
|
print("Updated following clients:", updateTimes())
|
||||||
elif argv[-1] == 'get':
|
elif argv[-1] == 'get':
|
||||||
pprint(getTimes())
|
pprint(getTimes())
|
||||||
else:
|
else:
|
||||||
print("Add args 'add' or 'get'")
|
print("Add args 'add' or 'get'")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user