Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ from slack_sdk.errors import SlackApiError
|
|
| 21 |
|
| 22 |
# βββ CONFIG βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 23 |
REPORT_CHANNEL_ID = "C08L1CFEF40" # #ai-vidya
|
| 24 |
-
|
| 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.
|
| 323 |
-
alert_channel_id =
|
|
|
|
| 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:
|