From 514418a0c103ec68a7a9c0a00f619237e8577de2 Mon Sep 17 00:00:00 2001
From: dnns01 <github@dnns01.de>
Date: Sun, 15 Jan 2023 20:50:24 +0100
Subject: [PATCH] Fix uuid for appointments

---
 views/appointment_view.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/views/appointment_view.py b/views/appointment_view.py
index 8939164..e09dd09 100644
--- a/views/appointment_view.py
+++ b/views/appointment_view.py
@@ -48,7 +48,7 @@ class AppointmentView(discord.ui.View):
         if appointment:
             appointment = appointment[0]
             await interaction.response.send_message("", file=File(appointment.get_ics_file(),
-                                                                  filename=f"{appointment.title}.ics"), ephemeral=True)
+                                                                  filename=f"{appointment.title}_{appointment.uuid}.ics"), ephemeral=True)
 
     @discord.ui.button(label='Löschen', style=discord.ButtonStyle.gray, custom_id='appointment_view:delete', emoji="🗑")
     async def delete(self, interaction: discord.Interaction, button: discord.ui.Button):
-- 
GitLab