change get_event_id, fix duplicates perhaps?

This commit is contained in:
Tomáš Mládek 2021-05-26 18:42:56 +02:00
parent df9be373e8
commit 815c4ec530

2
bot.py
View file

@ -94,7 +94,7 @@ async def send_message(text):
def get_event_id(event: Event) -> str:
return f"{event.begin}//{event.name}"
return f"{'_'.join(str(x) for x in event.begin.isocalendar())}//{event.name}"
async def main():