Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Mapathon Query enhancement #73

Merged
merged 19 commits into from
Nov 26, 2021

Conversation

kshitijrajsharma
Copy link
Member

@kshitijrajsharma kshitijrajsharma commented Nov 24, 2021

After PR #69
For quick review :
Parameters and query generated :

  "projectIds": [11224,10042],
  "fromTimestamp": "2021-08-27T9:00:00",
  "toTimestamp": "2021-08-27T11:00:00",
  "hashtags": ["mapandchathour2021"]
}


SELECT COUNT(distinct user_id) as contributors_count
FROM osm_changeset
WHERE "created_at" between '2021-08-27T09:00:00'::timestamp AND '2021-08-27T11:00:00'::timestamp
             AND (("tags" -> 'hashtags') ~~ '%hotosm-project-11224;%' 
              OR ("tags" -> 'hashtags') ~~ '%hotosm-project-10042;%' 
              OR ("tags" -> 'hashtags') ~~ '%mapandchathour2021;%' 
              OR ("tags" -> 'comment') ~~ '%hotosm-project-11224 %' 
              OR ("tags" -> 'comment') ~~ '%hotosm-project-10042 %' 
              OR ("tags" -> 'comment') ~~ '%mapandchathour2021 %')

@kshitijrajsharma kshitijrajsharma merged commit 7edf0a1 into hotosm:master Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant