Skip to content

Commit

Permalink
unify python syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Feb 23, 2024
1 parent 08c61fe commit dfa38a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apiserver/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ def update_status(symbols):
api_thread.daemon = True
api_thread.start()

schedule.every().hour.at(":00").do(update_status, symbols = STOCKS)
schedule.every().hour.at(":15").do(update_status, symbols = INDICES)
schedule.every().hour.at(":30").do(update_status, symbols = CRYPTOS)
schedule.every().hour.at(":45").do(update_status, symbols = CURRENCIES)
schedule.every().hour.at(":00").do(update_status, symbols=STOCKS)
schedule.every().hour.at(":15").do(update_status, symbols=INDICES)
schedule.every().hour.at(":30").do(update_status, symbols=CRYPTOS)
schedule.every().hour.at(":45").do(update_status, symbols=CURRENCIES)

print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), "API server started")

Expand Down

0 comments on commit dfa38a8

Please sign in to comment.