fixed automoderator scheduler

This commit is contained in:
Aaron Kimbre 2022-02-13 08:14:13 -06:00
parent 78ed39905f
commit b66d2748b4

View File

@ -3,7 +3,7 @@ from flask_user import login_required
from app.models import PetNames, db, CharacterXML, CharacterInfo
from datatables import ColumnDT, DataTables
from app.forms import CreatePlayKeyForm, EditPlayKeyForm
from app import gm_level, log_audit
from app import gm_level, log_audit, scheduler
moderation_blueprint = Blueprint('moderation', __name__)
@ -126,7 +126,7 @@ def get_pets(status="all"):
return data
@scheduler.task("cron", id="pet_name_maintenance", mintute=0, timezone="UTC")
@scheduler.task("cron", id="pet_name_maintenance", minute=0, timezone="UTC")
def pet_name_maintenance():
# associate pet names to characters
unassociated_pets = PetNames.query.filter(PetNames.owner_id == None).all()