From 3c17749daee0e5c1370e735b91d7d4b2109e75e8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 24 Apr 2022 18:02:09 +0100 Subject: [PATCH] Remove old hashtags while updating hashtag swarm --- inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 908d4298c..b51f8879b 100644 --- a/inbox.py +++ b/inbox.py @@ -200,6 +200,7 @@ def _update_cached_hashtag_swarm(base_dir: str, nickname: str, domain: str, except OSError: print('EX: unable to write cached hashtag swarm ' + cached_hashtag_swarm_filename) + remove_old_hashtags(base_dir, 3) return False @@ -270,7 +271,6 @@ def store_hash_tags(base_dir: str, nickname: str, domain: str, except OSError as ex: print('EX: Failed to write entry to tags file ' + tags_filename + ' ' + str(ex)) - remove_old_hashtags(base_dir, 3) # automatically assign a category to the tag if possible category_filename = tags_dir + '/' + tag_name + '.category'