votinginfoproject / vip-specification

The Voting Information Project XML specification.
http://vip-specification.readthedocs.io/en/release/
Other
75 stars 30 forks source link

Fixes a bug in rest file generation #446

Closed jswiesner closed 2 years ago

jswiesner commented 2 years ago

A bug was recently introduced with a1d546bba67b563af9e05e3db86f4055a5c8965d where the name of the argument type_name of the method update_rest_files was reused in the method itself. This caused unexpected behavior when the loop over modes was executed the second time. This bug is addressed by changing the name of the argument to this method from type_name to override_type_name, since the argument is used when the user wants to manually override which single type to process.