Skip to content

Commit

Permalink
Fix bug where too many args were passed to ExtendParagraph (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinderVosDeWael authored May 2, 2024
1 parent 4c41d62 commit ec5288e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ctk_functions/functions/intake/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,8 @@ def write_past_therapeutic_interventions(self) -> None:
heading = self._insert("Past Therapeutic Interventions", Style.HEADING_2)
paragraphs = [self._insert(text) for text in texts]
cmi_docx.ExtendParagraph(heading).format(font_rgb=RGB_INTAKE)
cmi_docx.ExtendParagraph(*paragraphs).format(font_rgb=RGB_INTAKE)
for paragraph in paragraphs:
cmi_docx.ExtendParagraph(paragraph).format(font_rgb=RGB_INTAKE)

def write_past_self_injurious_behaviors_and_suicidality(self) -> None:
"""Writes the past self-injurious behaviors and suicidality to the report."""
Expand Down

0 comments on commit ec5288e

Please sign in to comment.