Show total scans in social milestones

This commit is contained in:
2026-08-14 13:08:40 +02:00
parent 8e34f97afb
commit 8ef5221f71
6 changed files with 35 additions and 21 deletions

View File

@@ -59,8 +59,10 @@ def render_card(card):
draw.text((logo_x, 70), "QR MASTER", font=medium, fill=navy)
total = int(card.get("totalUniqueScans") or card.get("threshold") or 0)
total_scans = int(card.get("totalScans") or total)
draw.text((66, 212), f"{total:,}", font=display, fill=navy)
draw.text((73, 374), "UNIQUE SCANS", font=medium, fill=navy)
draw.text((74, 410), f"{total_scans:,} total scans", font=font("DejaVuSans.ttf", 20), fill=slate)
draw.line((68, 548, 108, 548), fill=blue, width=4)
draw.text((126, 530), "QR code milestone", font=regular, fill=slate)