13 amélioration des noms de fichiers

This commit is contained in:
SebF 2024-05-19 17:09:25 +02:00
parent 663c4cff71
commit 018b7a052f

View File

@ -281,8 +281,7 @@ def month_view(request, year=None, month=None, ical=False):
cmonth = CalendarMonth(year, month, filter) cmonth = CalendarMonth(year, month, filter)
if ical: if ical:
logger.warning("export ical mois") response = Event.export_to_ics(f"Événements {cmonth.get_month_name()} {year}", cmonth.get_events())
response = Event.export_to_ics("testmois", cmonth.get_events())
return response return response
context = { context = {
@ -309,7 +308,7 @@ def week_view(request, year=None, week=None, home=False, ical=False):
cweek = CalendarWeek(year, week, filter) cweek = CalendarWeek(year, week, filter)
if ical: if ical:
response = Event.export_to_ics("testsemaine", cweek.get_events()) response = Event.export_to_ics(f"Événements semaine {week} {year}", cweek.get_events())
return response return response
context = {"year": year, "week": week, "calendar": cweek, "filter": filter, "ical": True} context = {"year": year, "week": week, "calendar": cweek, "filter": filter, "ical": True}