1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

The plot thickens even more

This commit is contained in:
Steffo 2019-01-16 12:54:41 +01:00
parent 067a6664d4
commit 2c366769eb

View file

@ -120,9 +120,11 @@ def page_profile(name: str):
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 or len(data) == 0: if data is None:
continue continue
elif isinstance(data, InstrumentedList): elif isinstance(data, InstrumentedList):
if len(data) == 0:
continue
mini_data.append({ mini_data.append({
"name": game._mini_name, "name": game._mini_name,
"data": data[0] "data": data[0]