hooks: MEMBERS_LOW_THRESHOLD to 1

This commit is contained in:
norohind 2022-01-15 17:49:50 +03:00
parent c112c0e6a4
commit ba86147e93
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -73,7 +73,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 = 1
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