mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
47addccfa2
commit
1ca9c4c303
|
@ -575,6 +575,7 @@ def html_calendar(person_cache: {}, translate: {},
|
||||||
if curr_date.month == month_number:
|
if curr_date.month == month_number:
|
||||||
if day_of_month == curr_date.day:
|
if day_of_month == curr_date.day:
|
||||||
is_today = True
|
is_today = True
|
||||||
|
|
||||||
if events.get(str(day_of_month)):
|
if events.get(str(day_of_month)):
|
||||||
url = cal_actor + '/calendar?year=' + \
|
url = cal_actor + '/calendar?year=' + \
|
||||||
str(year) + '?month=' + \
|
str(year) + '?month=' + \
|
||||||
|
@ -597,13 +598,11 @@ def html_calendar(person_cache: {}, translate: {},
|
||||||
if not is_today:
|
if not is_today:
|
||||||
calendar_str += \
|
calendar_str += \
|
||||||
' <td class="calendar__day__cell" ' + \
|
' <td class="calendar__day__cell" ' + \
|
||||||
'data-event="">' + \
|
'data-event="">' + day_link + '</td>\n'
|
||||||
day_link + '</td>\n'
|
|
||||||
else:
|
else:
|
||||||
calendar_str += \
|
calendar_str += \
|
||||||
' <td class="calendar__day__cell" ' + \
|
' <td class="calendar__day__cell" ' + \
|
||||||
'data-today-event="">' + \
|
'data-today-event="">' + day_link + '</td>\n'
|
||||||
day_link + '</td>\n'
|
|
||||||
else:
|
else:
|
||||||
# No events today
|
# No events today
|
||||||
if not is_today:
|
if not is_today:
|
||||||
|
|
|
@ -264,11 +264,7 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
||||||
words = line_str.split(' ')
|
words = line_str.split(' ')
|
||||||
# get the link
|
# get the link
|
||||||
for word in words:
|
for word in words:
|
||||||
if word == '#':
|
if word in ('#', '*', '=>'):
|
||||||
continue
|
|
||||||
if word == '*':
|
|
||||||
continue
|
|
||||||
if word == '=>':
|
|
||||||
continue
|
continue
|
||||||
if '://' in word:
|
if '://' in word:
|
||||||
link_str = word
|
link_str = word
|
||||||
|
|
Loading…
Reference in New Issue