banao-tech commited on
Commit
d43919e
Β·
verified Β·
1 Parent(s): 6d3d28b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -21,7 +21,7 @@ from slack_sdk.errors import SlackApiError
21
 
22
  # ─── CONFIG ───────────────────────────────────────────────────────────────────
23
  REPORT_CHANNEL_ID = "C08L1CFEF40" # #ai-vidya
24
- ALERT_CHANNEL_NAME = "intern-updates" # where summary gets posted
25
  IST = ZoneInfo("Asia/Kolkata")
26
  DEADLINE_HOUR = 23 # 11 PM IST
27
 
@@ -29,9 +29,9 @@ DEADLINE_HOUR = 23 # 11 PM IST
29
  # Format: { "slack_user_id": "Full Name" }
30
  INTERN_REGISTRY = {
31
  # Add your interns below. Example:
32
-
33
- "U084C0HQLKS": "Khushi Mishra",
34
- "U0AFNM2H88G": "Roshesh Shah"
35
  }
36
 
37
  # ─── CLIENTS (lazy-init from env) ─────────────────────────────────────────────
@@ -319,8 +319,9 @@ def run_evaluation(custom_interns_json: str = "") -> str:
319
  q_icon = {"good": "🟒", "weak": "🟑", "invalid": "πŸ”΄"}.get(ev["quality"], "βšͺ")
320
  log.append(f" {q_icon} {r['name']} β†’ {ev['quality']} (score {ev['score']}/10): {ev['reason']}")
321
 
322
- # 4. Get alert channel
323
- alert_channel_id = get_alert_channel_id(slack_client, log)
 
324
 
325
  # 5. Post summary to #intern-updates
326
  if alert_channel_id:
 
21
 
22
  # ─── CONFIG ───────────────────────────────────────────────────────────────────
23
  REPORT_CHANNEL_ID = "C08L1CFEF40" # #ai-vidya
24
+ ALERT_CHANNEL_ID = "C0B2L4FTW4E" # #intern-updates
25
  IST = ZoneInfo("Asia/Kolkata")
26
  DEADLINE_HOUR = 23 # 11 PM IST
27
 
 
29
  # Format: { "slack_user_id": "Full Name" }
30
  INTERN_REGISTRY = {
31
  # Add your interns below. Example:
32
+ # "U06T83LP86P": "Mann Vishnoi",
33
+ # "U084C0HQLKS": "Khushi Mishra",
34
+ # "U0AFNM2H88G": "Roshesh Shah",
35
  }
36
 
37
  # ─── CLIENTS (lazy-init from env) ─────────────────────────────────────────────
 
319
  q_icon = {"good": "🟒", "weak": "🟑", "invalid": "πŸ”΄"}.get(ev["quality"], "βšͺ")
320
  log.append(f" {q_icon} {r['name']} β†’ {ev['quality']} (score {ev['score']}/10): {ev['reason']}")
321
 
322
+ # 4. Alert channel is hardcoded - no API call needed
323
+ alert_channel_id = ALERT_CHANNEL_ID
324
+ log.append(f" Using #intern-updates ({ALERT_CHANNEL_ID})")
325
 
326
  # 5. Post summary to #intern-updates
327
  if alert_channel_id: