From 4b63faa944654a89aa60bcf84faad18b8d0fee89 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 Feb 2020 20:53:51 +0000 Subject: [PATCH] Indentation --- webinterface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webinterface.py b/webinterface.py index 773562678..fee01c7ea 100644 --- a/webinterface.py +++ b/webinterface.py @@ -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()