13 amélioration des noms de fichiers
This commit is contained in:
parent
663c4cff71
commit
018b7a052f
@ -281,8 +281,7 @@ def month_view(request, year=None, month=None, ical=False):
|
||||
cmonth = CalendarMonth(year, month, filter)
|
||||
|
||||
if ical:
|
||||
logger.warning("export ical mois")
|
||||
response = Event.export_to_ics("testmois", cmonth.get_events())
|
||||
response = Event.export_to_ics(f"Événements {cmonth.get_month_name()} {year}", cmonth.get_events())
|
||||
return response
|
||||
|
||||
context = {
|
||||
@ -309,7 +308,7 @@ def week_view(request, year=None, week=None, home=False, ical=False):
|
||||
cweek = CalendarWeek(year, week, filter)
|
||||
|
||||
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
|
||||
|
||||
context = {"year": year, "week": week, "calendar": cweek, "filter": filter, "ical": True}
|
||||
|
Loading…
Reference in New Issue
Block a user