possible bugfix
UnboundLocalError: local variable 'line_pos' referenced before assignment
This commit is contained in:
parent
4469169adc
commit
9d401cf07a
@ -191,6 +191,7 @@ class Agenda(inkycal_module):
|
|||||||
|
|
||||||
# If no events were found, write only dates and lines
|
# If no events were found, write only dates and lines
|
||||||
else:
|
else:
|
||||||
|
line_pos = [(0, int(line * line_height)) for line in range(max_lines)]
|
||||||
cursor = 0
|
cursor = 0
|
||||||
for _ in agenda_events:
|
for _ in agenda_events:
|
||||||
title = _['title']
|
title = _['title']
|
||||||
|
Loading…
Reference in New Issue
Block a user