api caller bugfix

This commit is contained in:
Your Name
2021-12-21 10:11:49 +00:00
parent 339523046d
commit bbd40b2160
2 changed files with 16 additions and 2 deletions

View File

@@ -681,12 +681,13 @@ if __name__ == '__main__':
try:
while True:
if msg == 'A':
updateAll()
NY_time = datetime.now(NY_zone).replace(tzinfo=None)
msg = getInput()
if msg == 'A':
updateAll()
#stocks
stock_time = datetime.strptime(last_updates['stocks'], "%d/%m/%Y %H:%M:%S")