Setup Tests
This commit is contained in:
@ -2,7 +2,7 @@ import json
|
||||
|
||||
import asyncio
|
||||
|
||||
from init import db, Meals, scheduler, app
|
||||
from init import db, Meals, scheduler, flask_app
|
||||
import datetime
|
||||
import time
|
||||
import httpx
|
||||
@ -143,5 +143,5 @@ async def refreshMeals():
|
||||
|
||||
@scheduler.task('cron', id="mensaschedule", hour='8-11', day_of_week='*', minute='*/15', week='*', second='5')
|
||||
def mensaschedule():
|
||||
with app.app_context():
|
||||
with flask_app.app_context():
|
||||
asyncio.run(refreshMeals())
|
||||
|
||||
Reference in New Issue
Block a user