Skip to content

Commit

Permalink
fix: circular import in jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed Jan 9, 2025
1 parent 9e24dfb commit 5454c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/jobs/remove_expired_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 0 additions & 4 deletions app/jobs/utils.py

This file was deleted.

0 comments on commit 5454c1c

Please sign in to comment.