Skip to content

Commit

Permalink
[Track-234] RF format report title (#2468)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolkamps1 authored Dec 6, 2024
1 parent 03068f9 commit 586b0bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion epictrack-api/src/api/reports/resource_forecast_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,11 +912,13 @@ def add_default_info(canvas, doc):
"""Adds default information to the page."""
normal_style, _ = self._get_styles()
canvas.saveState()
normal_style.fontSize = 12
heading = Paragraph(
"<b>Document Title: EAO Resource Forecast</b>", normal_style
f"<b>{self.report_title}</b>", normal_style
)
heading.wrap(doc.width, inch * 0.5)
heading.drawOn(canvas, doc.leftMargin, doc.height + inch * 1.5)
normal_style.fontSize = 9
# Draw subheading.
subheading = Paragraph(f"Month of {report_date:%B %Y}", normal_style)
subheading.wrap(doc.width, inch * 0.5)
Expand Down

0 comments on commit 586b0bc

Please sign in to comment.