CityofToronto / bdit_flashcrow

Working repository for MOVE, a project to modernize transportation data systems at the City of Toronto.
MIT License
9 stars 2 forks source link

correctly filtering out reports that have zero collisions #1266

Closed lowsound42 closed 3 months ago

lowsound42 commented 3 months ago

Issue Addressed

This PR addresses MOVE-59

Description

The report export function on the data aggregate drawer was downloading reports even if they were empty (i.e. zero collisions at the location). This is obviously not what we want. This change filters out locations where the metadata shows zero collisions and only requests reports for the rest.

Tests

Manually tested running reports at multi location selections (both with and without corridors)