forked from MarseyWorld/MarseyWorld
g.db.query not g.db.get
parent
99f66c8d31
commit
62bd5a34e8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue