mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
36e7516257
commit
b193c0d6aa
14
happening.py
14
happening.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue