mirror of
https://github.com/norohind/jubilant-system.git
synced 2025-06-16 22:32:05 +03:00
Let's alert about all new ru squads
This commit is contained in:
parent
a59de6b566
commit
9b6fb48c4c
2
hooks.py
2
hooks.py
@ -60,7 +60,7 @@ def detect_new_ru_squads(squad_info: dict, db_conn: sqlite3.Connection) -> None:
|
|||||||
check if members count satisfies low threshold
|
check if members count satisfies low threshold
|
||||||
send alert
|
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:
|
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
|
# squad has only one record, it means squad just discovered
|
||||||
|
Loading…
x
Reference in New Issue
Block a user