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')
|
name = request.values.get('name')
|
||||||
tags = None
|
tags = None
|
||||||
error = None
|
error = None
|
||||||
if request.values.get('name'):
|
if name:
|
||||||
marsey = g.db.get(Marsey).filter_by(name=name).one_or_none()
|
marsey = g.db.query(Marsey).filter_by(name=name).one_or_none()
|
||||||
if marsey:
|
if marsey:
|
||||||
tags = marsey.tags
|
tags = marsey.tags
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue