Indentation

main
Bob Mottram 2020-02-28 20:53:51 +00:00
parent 666f23ba1d
commit 4b63faa944
1 changed files with 4 additions and 4 deletions

View File

@ -4808,8 +4808,8 @@ def htmlHashTagSwarm(baseDir: str,actor: str) -> str:
continue
if daysSinceEpochStr not in open(tagsFilename).read():
continue
tagCtr=0
with open(tagsFilename, 'r') as tagsFile:
tagCtr=0
lines=tagsFile.readlines()
for l in lines:
if ' ' not in l:
@ -4824,10 +4824,10 @@ def htmlHashTagSwarm(baseDir: str,actor: str) -> str:
if tagCtr==0:
tagSwarm.append(hashTagName)
tagCtr+=1
if tagCtr>3:
if tagCtr>1:
break
if tagCtr>0:
tagSwarmCtr.append(tagCtr)
if tagCtr>0:
tagSwarmCtr.append(tagCtr)
if not tagSwarm:
return ''
tagSwarm.sort()