Changed the print function when adding/updating the db

This commit is contained in:
2017-02-10 16:39:14 +01:00
parent f1337c9511
commit cce64669f2
2 changed files with 3 additions and 2 deletions

BIN
home.db

Binary file not shown.

View File

@@ -71,14 +71,15 @@ def updateTimes():
conn.commit()
conn.close()
return ("Updated following clients: " + online)
return (online)
if __name__ == '__main__':
if argv[-1] == 'add':
pprint(updateTimes())
print("Updated following clients:", updateTimes())
elif argv[-1] == 'get':
pprint(getTimes())
else:
print("Add args 'add' or 'get'")