mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
1bc643d34f
commit
4dafad931f
|
@ -1640,7 +1640,12 @@ def _add_account_blogs_to_newswire(base_dir: str, nickname: str, domain: str,
|
||||||
ctr = 0
|
ctr = 0
|
||||||
while post_filename:
|
while post_filename:
|
||||||
post_filename = fp_index.readline()
|
post_filename = fp_index.readline()
|
||||||
if post_filename:
|
if not post_filename:
|
||||||
|
ctr += 1
|
||||||
|
if ctr >= max_blogs_per_account:
|
||||||
|
break
|
||||||
|
continue
|
||||||
|
|
||||||
# if this is a full path then remove the directories
|
# if this is a full path then remove the directories
|
||||||
if '/' in post_filename:
|
if '/' in post_filename:
|
||||||
post_filename = post_filename.split('/')[-1]
|
post_filename = post_filename.split('/')[-1]
|
||||||
|
|
Loading…
Reference in New Issue