stanlee47 Claude Sonnet 4.6 commited on
Commit
7fd29fc
·
1 Parent(s): 82a2462

Reduce FCM cooldown to 3 min for testing

Browse files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. 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=5):
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,