transparentdemocracy / voting-data

Voting behavior data extracted from plenary reports of the Belgian federal government.
5 stars 1 forks source link

Refactor main extraction methods #19

Closed sandervh14 closed 1 month ago

sandervh14 commented 1 month ago

print_html_extraction_problems() and extract_voting_data_from_plenary_reports() are incredibly similar and might be combined into one method, with a print_problems: bool parameter.

sandervh14 commented 1 month ago

Done in my commit of this evening. In the end I did not combine them in one method. Only extract_voting_data_from_plenary_reports() remains. print_html_extraction_problems() has disappeared, and instead, when a problem occurs, warning logs are written to the terminal for inspection.