lucyparsons / OpenOversight

Police oversight and accountability through public data 👮
https://openoversight.com
GNU General Public License v3.0
240 stars 79 forks source link

Add invalid ID tests for `main.views` #1124

Closed michplunkett closed 1 month ago

michplunkett commented 1 month ago

Description of Changes

There were a handful of routes where we did not validate the initial ID parameters. Additionally, I standardized how object querying was done within the main.views file.

Tests and Linting