feat: new stats (#265)

This commit is contained in:
John Wang
2023-05-31 11:20:24 +08:00
committed by GitHub
parent 5e772bd10b
commit ae94b067b3
3 changed files with 225 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ def validate_token(view=None):
def decorated(*args, **kwargs):
site = validate_and_get_site()
app_model = db.session.query(App).get(site.app_id)
app_model = db.session.query(App).filter(App.id == site.app_id).first()
if not app_model:
raise NotFound()