Remove carriage return

main2
Bob Mottram 2019-10-11 19:55:24 +01:00
parent e378e83a8a
commit 6f8a86a044
1 changed files with 1 additions and 0 deletions

View File

@ -2763,6 +2763,7 @@ def getCalendarEvents(baseDir: str,nickname: str,domain: str,year: int,monthNumb
recreateEventsFile=False recreateEventsFile=False
with open(calendarFilename,'r') as eventsFile: with open(calendarFilename,'r') as eventsFile:
for postId in eventsFile: for postId in eventsFile:
postId=postId.replace('\n','')
postFilename=locatePost(baseDir,nickname,domain,postId) postFilename=locatePost(baseDir,nickname,domain,postId)
if postFilename: if postFilename:
postJsonObject=None postJsonObject=None