Less indentation

main
Bob Mottram 2025-06-02 12:59:03 +01:00
parent f8bcd406c8
commit dcc112637c
1 changed files with 20 additions and 17 deletions

View File

@ -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 = \