g.db.query not g.db.get

master
justcool393 2022-10-19 18:05:13 -05:00
parent 99f66c8d31
commit 62bd5a34e8
1 changed files with 2 additions and 2 deletions

View File

@ -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: