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 = {}
|
||||
for date in days.keys():
|
||||
try:
|
||||
y[date] = days[date][i].time
|
||||
text[date] = days[date][i].label
|
||||
y[date] = days[date][i]['time']
|
||||
text[date] = days[date][i]['label']
|
||||
except IndexError:
|
||||
y[date] = None
|
||||
text[date] = None
|
||||
|
|
Loading…
Reference in New Issue