Spaces:
Sleeping
Sleeping
Update report_generation/pdf_v3.py
Browse files
report_generation/pdf_v3.py
CHANGED
|
@@ -283,6 +283,7 @@ async def generate_report(req: ReportRequest):
|
|
| 283 |
<p class="cover-subtitle">Comprehensive Data Analysis Report</p>
|
| 284 |
<div class="cover-meta">
|
| 285 |
<div class="cover-company">ACCUSAGA</div>
|
|
|
|
| 286 |
<div>{current_date}</div>
|
| 287 |
</div>
|
| 288 |
</div>''')
|
|
@@ -297,7 +298,7 @@ async def generate_report(req: ReportRequest):
|
|
| 297 |
<div class="page">
|
| 298 |
<h2 class="section-title">Table of Contents</h2>
|
| 299 |
<ul class="toc-list">{toc_html}</ul>
|
| 300 |
-
<div class="page-footer"><div>
|
| 301 |
</div>''')
|
| 302 |
current_page_number += 1
|
| 303 |
|
|
@@ -307,7 +308,7 @@ async def generate_report(req: ReportRequest):
|
|
| 307 |
<div class="page">
|
| 308 |
<h2 class="section-title">Executive Overview</h2>
|
| 309 |
<div class="content-area" style="margin-top:20px;line-height:1.8;">{content["overview"]}</div>
|
| 310 |
-
<div class="page-footer"><div>
|
| 311 |
</div>''')
|
| 312 |
current_page_number += 1
|
| 313 |
|
|
@@ -335,7 +336,7 @@ async def generate_report(req: ReportRequest):
|
|
| 335 |
<div class="page">
|
| 336 |
<h2 class="section-title">{sec["title"]}</h2>
|
| 337 |
<div class="content-area" style="margin-top:20px;line-height:1.8;">{sec["content_html"]}{chart_html}</div>
|
| 338 |
-
<div class="page-footer"><div>
|
| 339 |
</div>''')
|
| 340 |
current_page_number += 1
|
| 341 |
|
|
@@ -345,7 +346,7 @@ async def generate_report(req: ReportRequest):
|
|
| 345 |
<div class="page">
|
| 346 |
<h2 class="section-title">Summary and Conclusions</h2>
|
| 347 |
<div class="content-area" style="margin-top:20px;line-height:1.8;">{content["summary"]}</div>
|
| 348 |
-
<div class="page-footer"><div>
|
| 349 |
</div>''')
|
| 350 |
current_page_number += 1
|
| 351 |
|
|
|
|
| 283 |
<p class="cover-subtitle">Comprehensive Data Analysis Report</p>
|
| 284 |
<div class="cover-meta">
|
| 285 |
<div class="cover-company">ACCUSAGA</div>
|
| 286 |
+
<div class>[email protected]</div>
|
| 287 |
<div>{current_date}</div>
|
| 288 |
</div>
|
| 289 |
</div>''')
|
|
|
|
| 298 |
<div class="page">
|
| 299 |
<h2 class="section-title">Table of Contents</h2>
|
| 300 |
<ul class="toc-list">{toc_html}</ul>
|
| 301 |
+
<div class="page-footer"><div>ACCUSAGA</div><div>Page {current_page_number}</div></div>
|
| 302 |
</div>''')
|
| 303 |
current_page_number += 1
|
| 304 |
|
|
|
|
| 308 |
<div class="page">
|
| 309 |
<h2 class="section-title">Executive Overview</h2>
|
| 310 |
<div class="content-area" style="margin-top:20px;line-height:1.8;">{content["overview"]}</div>
|
| 311 |
+
<div class="page-footer"><div>ACCUSAGA</div><div>Page {current_page_number}</div></div>
|
| 312 |
</div>''')
|
| 313 |
current_page_number += 1
|
| 314 |
|
|
|
|
| 336 |
<div class="page">
|
| 337 |
<h2 class="section-title">{sec["title"]}</h2>
|
| 338 |
<div class="content-area" style="margin-top:20px;line-height:1.8;">{sec["content_html"]}{chart_html}</div>
|
| 339 |
+
<div class="page-footer"><div>ACCUSAGA</div><div>Page {current_page_number}</div></div>
|
| 340 |
</div>''')
|
| 341 |
current_page_number += 1
|
| 342 |
|
|
|
|
| 346 |
<div class="page">
|
| 347 |
<h2 class="section-title">Summary and Conclusions</h2>
|
| 348 |
<div class="content-area" style="margin-top:20px;line-height:1.8;">{content["summary"]}</div>
|
| 349 |
+
<div class="page-footer"><div>ACCUSAGA</div><div>Page {current_page_number}</div></div>
|
| 350 |
</div>''')
|
| 351 |
current_page_number += 1
|
| 352 |
|