Skip to content
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

Balance due comment #153

Closed
wants to merge 12 commits into from
7 changes: 7 additions & 0 deletions src/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ def parse(self, county, case_number, test): #remove the test value here and just

# Adds a hash to the JSON file of the underlying HTML
body = case_soup.find("body")
"""
Why balance table is dropped before hashing:
The balance table is excluded from the hashing because
balance is updated as any costs are paid off. Otherwise,
the hash would change frequently and multiple versions
of the case would be captured that we don't want.
"""
balance_table = body.find_all("table")[-1]
if "Balance Due" in balance_table.text:
balance_table.decompose()
Expand Down
Loading
Loading