hotosm / MapCampaigner

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

Tags with 2 colons ":" are not checked correctly #856

Open pyrog opened 4 years ago

pyrog commented 4 years ago

Tag ref:FR:CNC is set for some OSM nodes but the left pane display ref:FR and 0% completed. Example

screen capture 2 colons
pyrog commented 4 years ago

See https://github.com/hotosm/MapCampaigner/blob/6a3f43b3ce6ac5cd97f33a2424c47af378e533ca/lambda_functions/process/make_feature_json/lambda_function.py#L71-L72

Keep all the tag (don't get only the first 2 parts)

#data for test only
feature_type =  {
      "tags": {
        "@id": "node/4056383799",
        "amenity": "cinema",
        "capacity": 630,
        "cinema:3D": "yes",
        "name": "Le Méliès Jean Jaurès",
        "ref:FR:Allocine": "P0161",
        "ref:FR:CNC": 383585,
        "ref:FR:SIRET": 34698021200044,
        "screen": 4,
        "toilets:wheelchair": "yes",
        "website": "http://www.lemelies.com",
        "wheelchair": "yes"
      }
}

required_tags = [k for k, _ in
    feature_type['tags'].items()]