fix edge cases in report generation

with xml parsing
error > system
disable email by default
This commit is contained in:
Aaron Kimbre
2022-02-25 11:46:13 -06:00
parent 9452e8c801
commit 039b45c824
7 changed files with 44 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
from flask import render_template, Blueprint, redirect, url_for, request, abort, flash, current_app
from flask import render_template, Blueprint, redirect, url_for, request, flash, current_app
from flask_user import login_required
from app.models import PetNames, db, CharacterXML, CharacterInfo
from datatables import ColumnDT, DataTables
@@ -126,7 +126,7 @@ def get_pets(status="all"):
return data
@scheduler.task("cron", id="pet_name_maintenance", second="*", timezone="UTC")
@scheduler.task("cron", id="pet_name_maintenance", hour="*", timezone="UTC")
def pet_name_maintenance():
with scheduler.app.app_context():
# associate pet names to characters