From 8bd278c52c22c7aa15fce339aa9fb9ec9e890d92 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 21 Feb 2022 19:32:40 +0000 Subject: [PATCH] Include extra info in month calendar --- happening.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/happening.py b/happening.py index 1454a8c19..237e5e4a3 100644 --- a/happening.py +++ b/happening.py @@ -623,6 +623,11 @@ def get_calendar_events(base_dir: str, nickname: str, domain: str, if int(event_time.strftime("%Y")) == year and \ int(event_time.strftime("%m")) == month_number: 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) else: # tag is a place