Skip to content

Commit

Permalink
Merge pull request #1744 from emko-274/minor_revisions
Browse files Browse the repository at this point in the history
Minor revisions
  • Loading branch information
ekong5 authored Aug 16, 2024
2 parents 05f7e11 + e5b6fe2 commit c7b47b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/backend/expungeservice/form_filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def __init__(self, path: str):
with open(path, 'wb') as f:
self.writer.write(f)
print(e)
self._pdf = f
self._pdf = f

def add_text(self, markdown: bytes):
_pdf = PdfReader(fdata=markdown)
Expand Down Expand Up @@ -766,4 +766,4 @@ def counties_with_cases_to_expunge(all_case_results: List[CaseResults]):
counties_with_balances.append(case_result.case.summary.location)
counties_with_expungements = [county for county in counties_with_eligible_charge if county not in counties_with_balances]
return []
#return counties_with_expungements
#return counties_with_expungements
1 change: 0 additions & 1 deletion src/backend/expungeservice/pdf/markdown_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def to_markdown(record: Dict, header: Optional[str] = None, aliases: List[Dict]
]

county_fines = [x for x in record["summary"]["county_fines"]]

eligible_charges_by_date = record["summary"]["charges_grouped_by_eligibility_and_case"]
future_eligible_charges = [
(key, eligible_charges_for_date)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/test_form_filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_normal_conviction_uses_multnomah_conviction_form():
}

mock_pdf = pdfkit.from_string("jd", False, options={"quiet": ""})
zip_path = FormFilling.build_zip(record_summary, user_information, mock_pdf, "JOHN_DOE_record_summary.pdf")[0]
zip_path, zip_name = FormFilling.build_zip(record_summary, user_information, mock_pdf, "JOHN_DOE_record_summary.pdf")
temp_dir = mkdtemp()
with ZipFile(zip_path, "r") as zip_ref:
zip_ref.extractall(temp_dir)
Expand Down

0 comments on commit c7b47b6

Please sign in to comment.