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