Spaces:
Sleeping
Sleeping
Update services/feedback_store.py
Browse files
services/feedback_store.py
CHANGED
|
@@ -67,7 +67,7 @@ def _fmt_for_chat(entry: dict) -> str:
|
|
| 67 |
if entry.get("video_id"): ctx.append(f"video {entry['video_id']}")
|
| 68 |
if entry.get("topic_title"): ctx.append(f"topic \"{entry['topic_title'][:60]}\"")
|
| 69 |
if entry.get("niche"): ctx.append(f"niche {entry['niche']}")
|
| 70 |
-
if entry.get("channel_id"): ctx.append(f"channel {entry
|
| 71 |
if entry.get("mode"): ctx.append(f"mode {entry['mode']}")
|
| 72 |
if entry.get("transcript_source"): ctx.append(f"transcript {entry['transcript_source']}")
|
| 73 |
if ctx:
|
|
@@ -135,4 +135,4 @@ def summary() -> dict:
|
|
| 135 |
out[src][rat] += 1
|
| 136 |
if r.get("reason"):
|
| 137 |
out["reasons"][r["reason"]] = out["reasons"].get(r["reason"], 0) + 1
|
| 138 |
-
return out
|
|
|
|
| 67 |
if entry.get("video_id"): ctx.append(f"video {entry['video_id']}")
|
| 68 |
if entry.get("topic_title"): ctx.append(f"topic \"{entry['topic_title'][:60]}\"")
|
| 69 |
if entry.get("niche"): ctx.append(f"niche {entry['niche']}")
|
| 70 |
+
if entry.get("channel_name") or entry.get("channel_id"): ctx.append(f"channel {entry.get('channel_name') or entry.get('channel_id')}")
|
| 71 |
if entry.get("mode"): ctx.append(f"mode {entry['mode']}")
|
| 72 |
if entry.get("transcript_source"): ctx.append(f"transcript {entry['transcript_source']}")
|
| 73 |
if ctx:
|
|
|
|
| 135 |
out[src][rat] += 1
|
| 136 |
if r.get("reason"):
|
| 137 |
out["reasons"][r["reason"]] = out["reasons"].get(r["reason"], 0) + 1
|
| 138 |
+
return out
|