hotosm / galaxy-api

Backend to fetch data from Underpass
https://galaxy-api.hotosm.org/latest/redoc
GNU Affero General Public License v3.0
14 stars 5 forks source link

Replace only respective key value pair if found 'None' rather than skipping whole row : User Stats #244

Closed kshitijrajsharma closed 2 years ago

kshitijrajsharma commented 2 years ago

With the current approach , we are skipping whole row if we found any None value in stats , Better approach will be only skip those specific respective key value pair and retain other stats so that other stats will still be visible in UI for the User if any key has None value https://github.com/hotosm/galaxy-api/blob/01e4e5a7cadac0cd9a83f8284505b8577890476e/src/galaxy/app.py#L522