mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
I give up
This commit is contained in:
parent
2c366769eb
commit
f0cca142c4
1 changed files with 2 additions and 2 deletions
|
@ -115,11 +115,11 @@ def page_profile(name: str):
|
||||||
css = fl_g.session.query(db.ProfileData).filter_by(royal=user).one_or_none()
|
css = fl_g.session.query(db.ProfileData).filter_by(royal=user).one_or_none()
|
||||||
mini_data = []
|
mini_data = []
|
||||||
for game in db.mini_list:
|
for game in db.mini_list:
|
||||||
|
# TODO: investigate on why instrumentedlists are returned, or minis are not found
|
||||||
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 Exception:
|
||||||
data = None
|
data = None
|
||||||
# TODO: investigate on why instrumentedlists are returned
|
|
||||||
if data is None:
|
if data is None:
|
||||||
continue
|
continue
|
||||||
elif isinstance(data, InstrumentedList):
|
elif isinstance(data, InstrumentedList):
|
||||||
|
|
Loading…
Reference in a new issue