fix png generation to align with new card badges, fixes #2

This commit is contained in:
badblocks 2025-04-08 14:40:41 -07:00
parent a83ce746b5
commit 1cdeaa9bba
11 changed files with 27 additions and 32 deletions

View file

@ -525,7 +525,7 @@ class TradeOfferPNGView(View):
# if query string has "debug=true", render the HTML instead of the PNG
if request.GET.get("debug") == "html":
return render(request, "trades/trade_offer_png_debug.html", {"html": html})
return render(request, "templatetags/trade_offer_png.html", tag_context)
with sync_playwright() as p:
browser = p.chromium.launch(