From ed748f70d3ffcbb1f3a9d348d8e3b23f69b83926 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Sun, 11 Dec 2022 19:51:46 +0100 Subject: [PATCH] Scheduler is now using asyncio --- modules/scheduled.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}")