mirror of https://gitlab.com/bashrc2/epicyon
Check that calendar path contains calendar
parent
7dd4fe6b55
commit
407fcc038f
|
@ -474,6 +474,8 @@ def html_timeline(css_cache: {}, default_timeline: str,
|
||||||
with open(calendar_file, 'r') as calfile:
|
with open(calendar_file, 'r') as calfile:
|
||||||
calendar_path = calfile.read().replace('##sent##', '')
|
calendar_path = calfile.read().replace('##sent##', '')
|
||||||
calendar_path = calendar_path.replace('\n', '').replace('\r', '')
|
calendar_path = calendar_path.replace('\n', '').replace('\r', '')
|
||||||
|
if '/calendar' not in calendar_path:
|
||||||
|
calendar_path = '/calendar'
|
||||||
|
|
||||||
# should the DM button be highlighted?
|
# should the DM button be highlighted?
|
||||||
new_dm = False
|
new_dm = False
|
||||||
|
|
Loading…
Reference in New Issue