Let's alert about all new ru squads

This commit is contained in:
norohind 2021-10-28 00:45:06 +03:00
parent a59de6b566
commit 9b6fb48c4c
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -60,7 +60,7 @@ def detect_new_ru_squads(squad_info: dict, db_conn: sqlite3.Connection) -> None:
check if members count satisfies low threshold
send alert
"""
MEMBERS_LOW_THRESHOLD: int = 5
MEMBERS_LOW_THRESHOLD: int = 0
if db_conn.execute(sql_requests.check_if_squad_exists_in_db, (squad_info['id'],)).fetchone()[0] == 1:
# squad has only one record, it means squad just discovered