From 62bd5a34e8085d3e0f47383663c38e63acc7371a Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 19 Oct 2022 18:05:13 -0500 Subject: [PATCH] g.db.query not g.db.get --- files/routes/asset_submissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index defb91059..6fcf03e6a 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -329,8 +329,8 @@ if SITE not in ('pcmemes.net', 'watchpeopledie.tv'): name = request.values.get('name') tags = None error = None - if request.values.get('name'): - marsey = g.db.get(Marsey).filter_by(name=name).one_or_none() + if name: + marsey = g.db.query(Marsey).filter_by(name=name).one_or_none() if marsey: tags = marsey.tags else: