mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
f8bcd406c8
commit
dcc112637c
7
posts.py
7
posts.py
|
@ -1085,9 +1085,12 @@ def _update_hashtags_index(base_dir: str, tag: {}, new_post_id: str,
|
||||||
except OSError:
|
except OSError:
|
||||||
print('EX: _update_hashtags_index unable to write tags file ' +
|
print('EX: _update_hashtags_index unable to write tags file ' +
|
||||||
tags_filename)
|
tags_filename)
|
||||||
else:
|
return
|
||||||
|
|
||||||
|
if text_in_file(new_post_id, tags_filename):
|
||||||
|
return
|
||||||
|
|
||||||
# prepend to tags index file
|
# prepend to tags index file
|
||||||
if not text_in_file(new_post_id, tags_filename):
|
|
||||||
days_diff = date_utcnow() - date_epoch()
|
days_diff = date_utcnow() - date_epoch()
|
||||||
days_since_epoch = days_diff.days
|
days_since_epoch = days_diff.days
|
||||||
tag_line = \
|
tag_line = \
|
||||||
|
|
Loading…
Reference in New Issue