1π
β
I think the issue is the with the last item in the "result" array of arrays β "last". It seems like itβs just a number. I guess you need some type checking in the algorithm.
Suggestion for code modification:
for i in data['result'].values():
# Skips "last" attribute
if isinstance(i, int):
continue
kraken_data = Krak(
time_0=(i[0][0]),
)
kraken_data.save()
π€vinkomlacic
Source:stackexchange.com