fix hashtags

This commit is contained in:
Il'ya (Marshal) 2022-06-08 15:32:36 +02:00
parent efddc6a552
commit b0a9f53475

View file

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