main
Bob Mottram 2024-07-16 11:06:35 +01:00
parent 47addccfa2
commit 1ca9c4c303
2 changed files with 4 additions and 9 deletions

View File

@ -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:

View File

@ -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