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

Comment for why balance due not hashed #154

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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