From 9f93d247eb39de228084e6b815e52b01b341a4e8 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 19 Jun 2026 13:56:48 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20KI-Bewertung=20+=20Begr=C3=BCndung=20in?= =?UTF-8?q?=20Submission-Detail=20+=20#76=20entblockt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.py b/app.py index d6a7a24..16187b2 100644 --- a/app.py +++ b/app.py @@ -1680,6 +1680,9 @@ def submission_detail(sub_id: int): import base64 + triage_emoji = {1: "🟢", 2: "🟡", 3: "🔴"} + triage_labels = {1: "Sofort veröffentlichungsfähig", 2: "Prüfung nötig", 3: "NICHT veröffentlichbar"} + # Media preview with per-item publish checkboxes media_html = "" if row["media_path"]: @@ -1859,6 +1862,8 @@ def submission_detail(sub_id: int):
Typ
{type_emoji} {row['type']}
Inhalt
{row['content'] or '(leer)'}
Status
{row['status']}
+ {f'''
🤖 KI-Bewertung
{triage_emoji.get(row['triage_tier'], '⚪')} {'' if row['triage_tier']==3 else ''}{triage_labels.get(row['triage_tier'], 'Ungeprüft')}{'' if row['triage_tier']==3 else ''}
''' if row['triage_tier'] else ''} + {f'''
📋 Begründung
{'
'.join(json.loads(row['triage_reasons'] or '[]'))}
''' if row['triage_reasons'] else ''}
Kategorie
{row['category'] or '-'}
📍 Halle / Stand
{row['halle'] or '– nicht erkannt –'}
🎯 Spieltitel