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 day_of_month == curr_date.day:
|
||||
is_today = True
|
||||
|
||||
if events.get(str(day_of_month)):
|
||||
url = cal_actor + '/calendar?year=' + \
|
||||
str(year) + '?month=' + \
|
||||
|
@ -597,13 +598,11 @@ def html_calendar(person_cache: {}, translate: {},
|
|||
if not is_today:
|
||||
calendar_str += \
|
||||
' <td class="calendar__day__cell" ' + \
|
||||
'data-event="">' + \
|
||||
day_link + '</td>\n'
|
||||
'data-event="">' + day_link + '</td>\n'
|
||||
else:
|
||||
calendar_str += \
|
||||
' <td class="calendar__day__cell" ' + \
|
||||
'data-today-event="">' + \
|
||||
day_link + '</td>\n'
|
||||
'data-today-event="">' + day_link + '</td>\n'
|
||||
else:
|
||||
# No events 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(' ')
|
||||
# get the link
|
||||
for word in words:
|
||||
if word == '#':
|
||||
continue
|
||||
if word == '*':
|
||||
continue
|
||||
if word == '=>':
|
||||
if word in ('#', '*', '=>'):
|
||||
continue
|
||||
if '://' in word:
|
||||
link_str = word
|
||||
|
|
Loading…
Reference in New Issue