mirror of https://github.com/snachodog/mybuddy.git
Correct object member access syntax
This commit is contained in:
parent
bb8466b51b
commit
81aa3b25b0
|
@ -112,8 +112,8 @@ def sleep_pattern(sleeps):
|
||||||
text = {}
|
text = {}
|
||||||
for date in days.keys():
|
for date in days.keys():
|
||||||
try:
|
try:
|
||||||
y[date] = days[date][i].time
|
y[date] = days[date][i]['time']
|
||||||
text[date] = days[date][i].label
|
text[date] = days[date][i]['label']
|
||||||
except IndexError:
|
except IndexError:
|
||||||
y[date] = None
|
y[date] = None
|
||||||
text[date] = None
|
text[date] = None
|
||||||
|
|
Loading…
Reference in New Issue