hey all, need some advice. im having a problem with this piece of code. im trying to pull the json data from the API to display on 1.3” oled display for pihole.
DNSQUERIES = data [‘dns_queries_today’]
TypeError: list indices must be integers or slices, not str
any help would be awesome.
submitted by /u/BurroinaBarmah
[link] [comments]
r/learnpython hey all, need some advice. im having a problem with this piece of code. im trying to pull the json data from the API to display on 1.3” oled display for pihole. DNSQUERIES = data [‘dns_queries_today’] TypeError: list indices must be integers or slices, not str any help would be awesome. submitted by /u/BurroinaBarmah [link] [comments]
hey all, need some advice. im having a problem with this piece of code. im trying to pull the json data from the API to display on 1.3” oled display for pihole.
DNSQUERIES = data [‘dns_queries_today’]
TypeError: list indices must be integers or slices, not str
any help would be awesome.
submitted by /u/BurroinaBarmah
[link] [comments]