diff --git a/app/jobs/remove_expired_users.py b/app/jobs/remove_expired_users.py index 0fde56531..eda9640bd 100644 --- a/app/jobs/remove_expired_users.py +++ b/app/jobs/remove_expired_users.py @@ -2,11 +2,12 @@ from app import logger, scheduler from app.db import GetDB, crud -from app.jobs.utils import SYSTEM_ADMIN from app.models.admin import Admin from app.utils import report from config import USER_AUTODELETE_INCLUDE_LIMITED_ACCOUNTS +SYSTEM_ADMIN = Admin(username='system', is_sudo=True, telegram_id=None, discord_webhook=None) + def remove_expired_users(): with GetDB() as db: diff --git a/app/jobs/utils.py b/app/jobs/utils.py deleted file mode 100644 index ab7f8abeb..000000000 --- a/app/jobs/utils.py +++ /dev/null @@ -1,4 +0,0 @@ -from app.models.admin import Admin - - -SYSTEM_ADMIN = Admin(username='system', is_sudo=True, telegram_id=None, discord_webhook=None)