CodeForPhilly / pbf-scraping

Project for Philadelphia Bail Fund to scrape new criminal filings from municipal court
https://codeforphilly.github.io/pbf-scraping
10 stars 4 forks source link

Fix bail percentage/amount posted bug #90

Closed notchia closed 2 years ago

notchia commented 2 years ago

When bail_type == 'Monetary' but bail_percentage was not specified, an error was thrown. Fixed by setting default bail_percentage to 10% for Monetary bail and 100% for other bail types (e.g., Unsecured, Nominal) and only updating with the value in the "Percentage" column of Bail Information if it is specified.