Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pyrog opened this issue Jul 3, 2020 · 1 comment
Open

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

pyrog opened this issue Jul 3, 2020 · 1 comment

Comments

@pyrog
Copy link

pyrog commented Jul 3, 2020

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
Copy link
Author

pyrog commented Jul 5, 2020

See

required_tags = [":".join(k.split(":", 2)[:2]) for k, _ in
feature_type['tags'].items()]

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()]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant