Nov-25-2020, 03:30 PM
Not sure what the issue is, but I would like to offer some design advice. If you move the file opening out of the functions and use x["data"]["races"][0]["timeseries"] as the argument, you can pare down all the data retrieval and make it easier to read.