Skip to content

Reduce redundant queries in receipt PDF generation#258

Merged
WhyNotHugo merged 4 commits intoWhyNotHugo:mainfrom
AlexCernik:main
Apr 8, 2026
Merged

Reduce redundant queries in receipt PDF generation#258
WhyNotHugo merged 4 commits intoWhyNotHugo:mainfrom
AlexCernik:main

Conversation

@AlexCernik
Copy link
Copy Markdown
Contributor

Refactor PDF context to reuse prefetched receipt data, simplify QR generation,
and add ordering to ReceiptEntry. Reduces repeated queries from ~11 to ~2.

@WhyNotHugo WhyNotHugo closed this Apr 8, 2026
@WhyNotHugo WhyNotHugo reopened this Apr 8, 2026
@WhyNotHugo
Copy link
Copy Markdown
Owner

Changes look perfect, thanks! CI failure is unrelated.

Refactor get_encoded_qrcode to use Receipt instead of ReceiptPDF and
update context generation for PDF rendering.
@WhyNotHugo WhyNotHugo merged commit 0d8e6fe into WhyNotHugo:main Apr 8, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants