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 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'")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user