Skip to content

Commit

Permalink
For record summary, use jurisdiction on offense, not on ciprs record
Browse files Browse the repository at this point in the history
A ciprs record may have both district and superior court offenses
  • Loading branch information
Rebecca Drabenstott authored and rebecca-draben committed Oct 10, 2023
1 parent cb16d05 commit 9c5342a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dear_petition/petition/export/documents/records_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __create_tables_data(offenses):
for offense in offenses:

county = offense.ciprs_record.county
jurisdiction = JURISDICTION_MAP[offense.ciprs_record.jurisdiction]
jurisdiction = JURISDICTION_MAP[offense.jurisdiction]
key = (county, jurisdiction)

offense_records = list(offense.offense_records.all())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ def create_offense(batch, county, jurisdiction, file_no, dob, verdict, dispositi
ciprs_record = CIPRSRecordFactory(
batch=batch,
county=county,
jurisdiction=jurisdiction,
file_no=file_no,
dob=dob,
offense_date="2001-09-30",
Expand All @@ -399,6 +398,7 @@ def create_offense(batch, county, jurisdiction, file_no, dob, verdict, dispositi
)
offense = OffenseFactory(
ciprs_record=ciprs_record,
jurisdiction=jurisdiction,
verdict=verdict,
disposition_method=disposition_method,
disposed_on="2003-10-02",
Expand Down

0 comments on commit 9c5342a

Please sign in to comment.