From c177725ebc3eca41ca58d91ffec4d7514575d19f Mon Sep 17 00:00:00 2001 From: Pieter Date: Tue, 31 Mar 2026 09:03:33 +0200 Subject: [PATCH] Fix analysis dashboard trend data field mapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update web.py to use flagged_posts/flagged_mentions fields - Matches data structure returned by analysis_helpers Analysis dashboard and trend graph now working correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/web.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/web.py b/app/web.py index 1ce2182..3b26a25 100644 --- a/app/web.py +++ b/app/web.py @@ -455,7 +455,8 @@ def analysis_dashboard(): { "week": r["week"].strftime("%Y-%m-%d") if r["week"] else "", "avg_toxicity": round(float(r["avg_toxicity"]), 4), - "flagged_statuses": int(r["flagged_statuses"]), + "flagged_posts": int(r["flagged_posts"]), + "flagged_mentions": int(r["flagged_mentions"]), } for r in trend ])