fix problem where todos were only shown of a single group
This commit is contained in:
parent
4753dbc4a6
commit
69786fb4df
@ -164,7 +164,7 @@ class Todoist(inkycal_module):
|
|||||||
for name, todos in groups.items():
|
for name, todos in groups.items():
|
||||||
if todos:
|
if todos:
|
||||||
for todo in todos:
|
for todo in todos:
|
||||||
if cursor < len(line_positions):
|
if cursor < max_lines:
|
||||||
line_x, line_y = line_positions[cursor]
|
line_x, line_y = line_positions[cursor]
|
||||||
|
|
||||||
if todo['project']:
|
if todo['project']:
|
||||||
@ -191,9 +191,9 @@ class Todoist(inkycal_module):
|
|||||||
todo['name'], font=self.font, alignment='left')
|
todo['name'], font=self.font, alignment='left')
|
||||||
|
|
||||||
cursor += 1
|
cursor += 1
|
||||||
else:
|
else:
|
||||||
logger.error('More todos than available lines')
|
logger.error('More todos than available lines')
|
||||||
break
|
break
|
||||||
|
|
||||||
# return the images ready for the display
|
# return the images ready for the display
|
||||||
return im_black, im_colour
|
return im_black, im_colour
|
||||||
|
Loading…
Reference in New Issue
Block a user