Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -6,7 +6,12 @@ from context import context_list
|
||||
env = Environment(loader=FileSystemLoader("report_gen"))
|
||||
|
||||
html_pages = []
|
||||
|
||||
a = 1
|
||||
b = "string"
|
||||
c = [1,2,3,5]
|
||||
d = {
|
||||
"key": "value"
|
||||
}
|
||||
header_context = {
|
||||
"patient_name": "Keirstyn Moran",
|
||||
"age": 34,
|
||||
@@ -122,3 +127,4 @@ html_string_to_pdf(html_doc, "multi_page_report.pdf")
|
||||
# pdfkit.from_string(html_doc, "truth_report.pdf", options=options)
|
||||
|
||||
print("✅ PDF generated: multi_page_report.pdf")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user