1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2019-01-15 00:23:32 +01:00
parent d4409c9774
commit 93f021e45d
2 changed files with 2 additions and 2 deletions

2
db.py
View file

@ -106,7 +106,7 @@ class Mini(object):
for connection in chain:
start = start.join(connection.mapper.class_)
start = start.filter(Royal.id == royal.id)
mini = start.one_or_none()
mini = start.one()
return mini

View file

@ -117,7 +117,7 @@ def page_profile(name: str):
for game in db.mini_list:
try:
data = game.mini_get_single_from_royal(fl_g.session, user)
except errors.NotFoundError():
except errors.NotFoundError:
data = None
# TODO: investigate on why instrumentedlists are returned
if data is None: