Search found 1 match

by Xioto
Sat Jun 19, 2021 4:50 pm
Forum: General Discussion
Topic: TypeError: string indices must be integers
Replies: 2
Views: 3982

TypeError: string indices must be integers

So I have this bit of code that finds waveHeight and stores it as a cache, but when it reaches this section - sorted (data, key = lambda i: i['hours']) #sorts through cache_file data print([0]) if 'waveHeight' in [0] and 'dwd' in [0]['waveHeight'] and[0]['waveHeight']['dwd'] >= 2.00: #if date and wa...

Go to advanced search