mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
860b10c228
commit
4243468da8
11
happening.py
11
happening.py
|
@ -349,10 +349,13 @@ def get_todays_events(base_dir: str, nickname: str, domain: str,
|
||||||
event_time = \
|
event_time = \
|
||||||
date_from_string_format(tag['startTime'],
|
date_from_string_format(tag['startTime'],
|
||||||
["%Y-%m-%dT%H:%M:%S%z"])
|
["%Y-%m-%dT%H:%M:%S%z"])
|
||||||
if int(event_time.strftime("%Y")) == year and \
|
event_year = int(event_time.strftime("%Y"))
|
||||||
int(event_time.strftime("%m")) == month_number and \
|
event_month = int(event_time.strftime("%m"))
|
||||||
int(event_time.strftime("%d")) == day_number:
|
event_day = int(event_time.strftime("%d"))
|
||||||
day_of_month = str(int(event_time.strftime("%d")))
|
if event_year == year and \
|
||||||
|
event_month == month_number and \
|
||||||
|
event_day == day_number:
|
||||||
|
day_of_month = str(event_day)
|
||||||
if '#statuses#' in post_id:
|
if '#statuses#' in post_id:
|
||||||
# link to the id so that the event can be
|
# link to the id so that the event can be
|
||||||
# easily deleted
|
# easily deleted
|
||||||
|
|
Loading…
Reference in New Issue