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
run.py Normal file
View File

@@ -0,0 +1,13 @@
from app import app
from waitress import serve
import threading
from app.scoreboard.tasks import schedule_tasks
from app.scoreboard.get_data import store_scoreboard_data
from app.scoreboard.update_nhl_standings_db import update_nhl_standings
if __name__ == '__main__':
store_scoreboard_data()
update_nhl_standings()
threading.Thread(target=schedule_tasks).start()
serve(app, host="0.0.0.0", port=2897)