fix png generation to align with new card badges, fixes #2
This commit is contained in:
parent
a83ce746b5
commit
1cdeaa9bba
11 changed files with 27 additions and 32 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue