refactor: changes entire project structure
This commit is contained in:
13
run.py
Normal file
13
run.py
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user