hotosm / MapCampaigner

Campaign management tool
BSD 3-Clause "New" or "Revised" License
38 stars 23 forks source link

updated filter functionality on my projects page #777

Closed russbiggs closed 4 years ago

russbiggs commented 4 years ago

Adds osm_id filtering based on user.json array

localjo commented 4 years ago

I'm getting an error on /user/{user_id}/campaigns:

File "/flask_project/campaign_manager/utilities.py", line 304, in get_data_from_s3
campaign_json['geojson'] = geojson
TypeError: list indices must be integers or slices, not str
localjo commented 4 years ago

The error I was getting was because I didn't have {user_id}.json set up correctly with my projects in it. I set that file up correctly, and now this works for me.