diff --git a/modules/scheduled.py b/modules/scheduled.py index a194f09..19577ed 100644 --- a/modules/scheduled.py +++ b/modules/scheduled.py @@ -1,4 +1,4 @@ -from apscheduler.schedulers.background import BackgroundScheduler +from apscheduler.schedulers.asyncio import AsyncIOScheduler from datetime import datetime from os import fsdecode, listdir, sep from app import app @@ -6,7 +6,7 @@ from modules.utils import configGet, jsonLoad, locale, logWrite from dateutil.relativedelta import relativedelta from modules.database import col_applications -scheduler = BackgroundScheduler() +scheduler = AsyncIOScheduler() # for user_file in listdir(f"{configGet('data', 'locations')}{sep}users{sep}"): # filename = fsdecode(f"{configGet('data', 'locations')}{sep}users{sep}{user_file}")