mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
Revert and fix 686e9975bc
This commit is contained in:
parent
d4409c9774
commit
93f021e45d
2 changed files with 2 additions and 2 deletions
2
db.py
2
db.py
|
@ -106,7 +106,7 @@ class Mini(object):
|
||||||
for connection in chain:
|
for connection in chain:
|
||||||
start = start.join(connection.mapper.class_)
|
start = start.join(connection.mapper.class_)
|
||||||
start = start.filter(Royal.id == royal.id)
|
start = start.filter(Royal.id == royal.id)
|
||||||
mini = start.one_or_none()
|
mini = start.one()
|
||||||
return mini
|
return mini
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ def page_profile(name: str):
|
||||||
for game in db.mini_list:
|
for game in db.mini_list:
|
||||||
try:
|
try:
|
||||||
data = game.mini_get_single_from_royal(fl_g.session, user)
|
data = game.mini_get_single_from_royal(fl_g.session, user)
|
||||||
except errors.NotFoundError():
|
except errors.NotFoundError:
|
||||||
data = None
|
data = None
|
||||||
# TODO: investigate on why instrumentedlists are returned
|
# TODO: investigate on why instrumentedlists are returned
|
||||||
if data is None:
|
if data is None:
|
||||||
|
|
Loading…
Reference in a new issue