From b0a9f53475a5a5bdc632a504c84dbff4e015b82a Mon Sep 17 00:00:00 2001 From: "Il'ya (Marshal)" Date: Wed, 8 Jun 2022 15:32:36 +0200 Subject: [PATCH] fix hashtags --- make_and_send_alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_and_send_alert.py b/make_and_send_alert.py index 0d905f64ab..582056f615 100644 --- a/make_and_send_alert.py +++ b/make_and_send_alert.py @@ -137,7 +137,7 @@ async def main() -> None: pattern = HASHTAGS_PATTERNS[available_hashtag] if pattern in file['filename']: alert_hashtags.add(available_hashtag) - break # one file cannot have more than one hashtag + # optimize substring search available_hashtags -= alert_hashtags