Less indentation

main
Bob Mottram 2020-02-23 09:49:10 +00:00
parent 36e7516257
commit b193c0d6aa
1 changed files with 132 additions and 126 deletions

View File

@ -50,7 +50,8 @@ def getTodaysEvents(baseDir: str,nickname: str,domain: str, \
postFilename=locatePost(baseDir,nickname,domain,postId)
if not postFilename:
recreateEventsFile=True
else:
continue
postJsonObject=loadJson(postFilename)
if not postJsonObject:
continue
@ -117,7 +118,9 @@ def todaysEventsCheck(baseDir: str,nickname: str,domain: str) -> bool:
for postId in eventsFile:
postId=postId.replace('\n','')
postFilename=locatePost(baseDir,nickname,domain,postId)
if postFilename:
if not postFilename:
continue
postJsonObject=loadJson(postFilename)
if not postJsonObject:
continue
@ -167,7 +170,9 @@ def thisWeeksEventsCheck(baseDir: str,nickname: str,domain: str) -> bool:
for postId in eventsFile:
postId=postId.replace('\n','')
postFilename=locatePost(baseDir,nickname,domain,postId)
if postFilename:
if not postFilename:
continue
postJsonObject=loadJson(postFilename)
if not postJsonObject:
continue
@ -225,7 +230,8 @@ def getThisWeeksEvents(baseDir: str,nickname: str,domain: str) -> {}:
postFilename=locatePost(baseDir,nickname,domain,postId)
if not postFilename:
recreateEventsFile=True
else:
continue
postJsonObject=loadJson(postFilename)
if not postJsonObject:
continue