Skip to content

Commit

Permalink
Update legislation_votes_generator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik-Brown01 committed Jan 8, 2024
1 parent 8e4e0d0 commit ff0c956
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/legislation_votes_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ def generate_legislation_votes():
output_file_path_dynamic = "public/legislations_votes.json"

# Writing the data to a new JSON file
with open(output_file_path_dynamic, 'w') as file:
with open(output_file_path_dynamic, 'w+') as file:
print("Before:")
print(file.read())
json.dump(final_summary_data, file, indent=4)
print("After:")
print(file.read())


if __name__ == '__main__':
Expand Down

0 comments on commit ff0c956

Please sign in to comment.