Added pprint to main() call functions

This commit is contained in:
2017-02-10 16:31:19 +01:00
parent 0b71e6f5f8
commit a483dc543a

View File

@@ -5,6 +5,7 @@ from subprocess import check_output, CalledProcessError
from time import time from time import time
from re import findall from re import findall
from sys import argv from sys import argv
import pprint
def getOnlineClients(): def getOnlineClients():
try: try:
@@ -72,9 +73,9 @@ def updateTimes():
if __name__ == '__main__': if __name__ == '__main__':
if argv[-1] == 'add': if argv[-1] == 'add':
print(updateTimes()) pprint(updateTimes())
elif argv[-1] == 'get': elif argv[-1] == 'get':
print(getTimes()) pprint(getTimes())
else: else:
print("Add args 'add' or 'get'") print("Add args 'add' or 'get'")