refactor: changes entire project structure

This commit is contained in:
2024-02-19 01:05:33 -05:00
parent 3e45c22b59
commit aae9ba4a27
13 changed files with 240 additions and 255 deletions

13
app/scoreboard/tasks.py Normal file
View File

@@ -0,0 +1,13 @@
import schedule
import time
from app.scoreboard.update_nhl_standings_db import update_nhl_standings
from app.scoreboard.get_data import store_scoreboard_data
def schedule_tasks():
schedule.every(600).seconds.do(update_nhl_standings)
schedule.every(10).seconds.do(store_scoreboard_data)
while True:
schedule.run_pending()
time.sleep(1)