mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
44bff188c2
commit
0a34a1d00f
|
@ -368,8 +368,11 @@ def html_calendar(person_cache: {}, translate: {},
|
||||||
if '?' in actor:
|
if '?' in actor:
|
||||||
first = True
|
first = True
|
||||||
for part in actor.split('?'):
|
for part in actor.split('?'):
|
||||||
if not first:
|
if first:
|
||||||
if '=' in part:
|
first = False
|
||||||
|
continue
|
||||||
|
if '=' not in part:
|
||||||
|
continue
|
||||||
if part.split('=')[0] == 'year':
|
if part.split('=')[0] == 'year':
|
||||||
num_str = part.split('=')[1]
|
num_str = part.split('=')[1]
|
||||||
if len(num_str) <= 5:
|
if len(num_str) <= 5:
|
||||||
|
@ -393,7 +396,6 @@ def html_calendar(person_cache: {}, translate: {},
|
||||||
bool_str = part.split('=')[1]
|
bool_str = part.split('=')[1]
|
||||||
if bool_str.lower().startswith('t'):
|
if bool_str.lower().startswith('t'):
|
||||||
only_show_reminders = True
|
only_show_reminders = True
|
||||||
first = False
|
|
||||||
actor = actor.split('?')[0]
|
actor = actor.split('?')[0]
|
||||||
|
|
||||||
curr_date = datetime.now()
|
curr_date = datetime.now()
|
||||||
|
|
Loading…
Reference in New Issue