Spaces:
Sleeping
Sleeping
stanlee47 Claude Sonnet 4.6 commited on
Commit ·
7fd29fc
1
Parent(s): 82a2462
Reduce FCM cooldown to 3 min for testing
Browse filesCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- wearable.py +1 -1
wearable.py
CHANGED
|
@@ -65,7 +65,7 @@ def run_ml_inference_and_alert(user_id: str, record_id: str, db):
|
|
| 65 |
if FCM_ENABLED:
|
| 66 |
try:
|
| 67 |
fcm_token = db.get_fcm_token(user_id)
|
| 68 |
-
if fcm_token and db.fcm_cooldown_ok(user_id, cooldown_minutes=
|
| 69 |
condition = 'HIGH_STRESS' if risk_level == 2 else 'MILD_STRESS'
|
| 70 |
sent = fcm_send(
|
| 71 |
fcm_token=fcm_token,
|
|
|
|
| 65 |
if FCM_ENABLED:
|
| 66 |
try:
|
| 67 |
fcm_token = db.get_fcm_token(user_id)
|
| 68 |
+
if fcm_token and db.fcm_cooldown_ok(user_id, cooldown_minutes=3):
|
| 69 |
condition = 'HIGH_STRESS' if risk_level == 2 else 'MILD_STRESS'
|
| 70 |
sent = fcm_send(
|
| 71 |
fcm_token=fcm_token,
|