convert start, stop and reload_conf to return a dict

This commit is contained in:
gcarq
2018-06-22 03:32:45 +02:00
committed by creslinux
parent 446c621006
commit 913cb80a33
6 changed files with 33 additions and 23 deletions

View File

@@ -21,7 +21,7 @@ if len(argv) == 1:
if len(argv) == 3 and argv[1] == "daily":
if str.isnumeric(argv[2]):
get_url = 'http://localhost:5002/daily?timescale=' + argv[2]
d=get(get_url).json()
d = get(get_url).json()
print(d)
else:
print("\nThe second argument to daily must be an integer, 1,2,3 etc")