mirror of
https://github.com/KevinMidboe/homeChecker.git
synced 2025-10-29 17:40:26 +00:00
Added pprint to main() call functions
This commit is contained in:
@@ -5,6 +5,7 @@ from subprocess import check_output, CalledProcessError
|
||||
from time import time
|
||||
from re import findall
|
||||
from sys import argv
|
||||
import pprint
|
||||
|
||||
def getOnlineClients():
|
||||
try:
|
||||
@@ -72,9 +73,9 @@ def updateTimes():
|
||||
|
||||
if __name__ == '__main__':
|
||||
if argv[-1] == 'add':
|
||||
print(updateTimes())
|
||||
pprint(updateTimes())
|
||||
elif argv[-1] == 'get':
|
||||
print(getTimes())
|
||||
pprint(getTimes())
|
||||
else:
|
||||
print("Add args 'add' or 'get'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user