feat: new stats (#265)

This commit is contained in:
John Wang 2023-05-31 11:20:24 +08:00 committed by GitHub
commit ae94b067b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()