From ee35feab4ca83b7d5db0a5fa6742a2cc0c858b79 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Tue, 16 Jun 2026 00:20:14 +0000 Subject: [PATCH] fix: convert sqlite3.Row to dict before using .get() method --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index c1c28f5..fcdc8db 100644 --- a/app.py +++ b/app.py @@ -917,6 +917,9 @@ def pipeline_visual_asset(asset): last_run = dict(last) if last else {} + # Convert sqlite3.Row objects to dicts + last_5 = [dict(r) for r in last_5] + asset_labels = {"btc": "Bitcoin", "usd": "Dólar USD/BRL", "xau": "Ouro XAU/USD"} asset_emojis = {"btc": "₿", "usd": "💵", "xau": "🪙"} asset_colors = {"btc": "#f7931a", "usd": "#4fc3f7", "xau": "#ffd700"}