Include extra info in month calendar

merge-requests/30/head
Bob Mottram 2022-02-21 19:32:40 +00:00
parent 010dccaf27
commit 8bd278c52c
1 changed files with 5 additions and 0 deletions

View File

@ -623,6 +623,11 @@ def get_calendar_events(base_dir: str, nickname: str, domain: str,
if int(event_time.strftime("%Y")) == year and \ if int(event_time.strftime("%Y")) == year and \
int(event_time.strftime("%m")) == month_number: int(event_time.strftime("%m")) == month_number:
day_of_month = str(int(event_time.strftime("%d"))) day_of_month = str(int(event_time.strftime("%d")))
if '#statuses#' in post_id:
tag['post_id'] = post_id.split('#statuses#')[1]
tag['id'] = post_id.replace('#', '/')
tag['sender'] = post_id.split('#statuses#')[0]
tag['sender'] = tag['sender'].replace('#', '/')
post_event.append(tag) post_event.append(tag)
else: else:
# tag is a place # tag is a place