JonathanGarro / SIMS-Portal

IFRC Surge Information Management Support Portal
4 stars 4 forks source link

5 remote assignment badge incorrectly awarded? #10

Closed danbjoseph closed 1 year ago

danbjoseph commented 1 year ago

pretty sure i only ticked the box for "remote" for Tigray. but am showing as having the badge for 5 remote assignments.

Screen Shot 2023-03-16 at 2 33 38 PM
JonathanGarro commented 1 year ago

the cron that searches for people meeting specific badge criteria was not filtering for remote assignments. i actually think this was the original intent with this badge - i need to adjust the badge image language.

JonathanGarro commented 1 year ago

I've updated the code that handles these alerts. The SQL query had an error, but I've fixed it and updated it to SQLAlchemy to ensure it's cross-compatible between my local SQLite db and the production Postgres db.