-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove autofill 1 #1734
Remove autofill 1 #1734
Conversation
updating form_filling to remove county court autofill
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a few changes, but after that looks good to merge.
@@ -396,7 +396,8 @@ def extra_mappings(self): | |||
# Is the OSP Form | |||
osp_fields: Dict[str, object] = {} | |||
for i in range(10): | |||
osp_fields[f"(Court {i+1})"] = f"Circuit Court for {s.counties_with_cases_to_expunge[i]} County" if i<len(s.counties_with_cases_to_expunge) else "" | |||
#osp_fields[f"(Court {i+1})"] = f"Circuit Court for {s.counties_with_cases_to_expunge[i]} County" if i<len(s.counties_with_cases_to_expunge) else "" | |||
osp_fields[f"(Court {i+1})"] = "" | |||
if s.has_eligible_convictions: | |||
osp_fields["(Include a Conviction Yes)"] = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part should also be removed: we don't want to check the box anymore, until the whole thing is fixed.
@@ -39,6 +39,7 @@ def handle_person(output, client, row): | |||
aliases = [alias] | |||
response = client.post("http://localhost:5000/api/search", json={"aliases": aliases}) | |||
record = json.loads(response.text)["record"] | |||
print(record) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✂️
@@ -705,4 +706,5 @@ def counties_with_cases_to_expunge(all_case_results: List[CaseResults]): | |||
if case_result.case.summary.balance_due_in_cents != 0: | |||
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 counties_with_expungements | |||
return [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal since the result of this function isn't used anymore, but I think this change in particular is confusing since it breaks the functionality. I would either leave it alone or comment out the function.
Removed OSP court autofill and updated tests to reflect changes. This was erroneously listed as a fix in the description of pull request #1733.