[F] Fix covid detection

This commit is contained in:
Hykilpikonna
2021-11-22 15:34:59 -05:00
parent d9a78baa3d
commit 0aa4db3718
+1 -1
View File
@@ -127,4 +127,4 @@ def is_covid_related(text: str) -> bool:
# pandemics or other vaccines. However, I think we need to include "the pandemic" because many
# posts refer to covid only as "the pandemic".
keywords = 'covid; the pandemic; lockdown; spikevax; comirnaty; vaxzevria; 疫情'.split('; ')
return any(k in text for k in keywords)
return any(k in text.lower() for k in keywords)