forked from indymedia/epicyon
Less indentation
parent
c7740de9e9
commit
18ac0231b4
|
@ -422,10 +422,12 @@ def sharesTimelineJson(actor: str, pageNumber: int, itemsPerPage: int,
|
||||||
allSharesJson = {}
|
allSharesJson = {}
|
||||||
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
|
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
|
||||||
for handle in dirs:
|
for handle in dirs:
|
||||||
if '@' in handle:
|
if '@' not in handle:
|
||||||
|
continue
|
||||||
accountDir = baseDir + '/accounts/' + handle
|
accountDir = baseDir + '/accounts/' + handle
|
||||||
sharesFilename = accountDir + '/shares.json'
|
sharesFilename = accountDir + '/shares.json'
|
||||||
if os.path.isfile(sharesFilename):
|
if not os.path.isfile(sharesFilename):
|
||||||
|
continue
|
||||||
sharesJson = loadJson(sharesFilename)
|
sharesJson = loadJson(sharesFilename)
|
||||||
if not sharesJson:
|
if not sharesJson:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue