diff --git a/inbox.py b/inbox.py index 8d38ce2d9..5a4ace84e 100644 --- a/inbox.py +++ b/inbox.py @@ -1437,7 +1437,7 @@ def inboxUpdateCalendar(baseDir: str,handle: str,postJsonObject: {}) -> None: calendarFile.write(postId+'\n') calendarFile.close() calendarNotificationFilename=baseDir+'/accounts/'+handle+'/.newCalendar' - calendarNotificationFile=open(calendarFilename,'w') + calendarNotificationFile=open(calendarNotificationFilename,'w') if calendarNotificationFile: calendarNotificationFile.write('/calendar?year='+str(eventYear)+'?month='+str(eventMonthNumber)+'?day='+str(eventDayOfMonth)) calendarNotificationFile.close()