From ba86147e93b913c5db2bb5a12f7af782759e93c3 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Sat, 15 Jan 2022 17:49:50 +0300 Subject: [PATCH] hooks: MEMBERS_LOW_THRESHOLD to 1 --- hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks.py b/hooks.py index 3936a49..1308b64 100644 --- a/hooks.py +++ b/hooks.py @@ -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