Ignore JOSM changesets

This commit is contained in:
Ilya Zverev 2017-01-13 17:42:19 +03:00
parent 8c7b90e3bc
commit b9fdb70b27

View file

@ -26,7 +26,7 @@ def download_last_state():
def filter_changeset(changeset):
"""A changeset object is a dict of tags plus 'id', 'timestamp' and 'user' fields."""
return 'created_by' in changeset and 'maps.me' in changeset['created_by'].lower()
return 'created_by' in changeset and 'maps.me' in changeset['created_by'].lower() and 'JOSM' not in changeset['created_by']
def download_replication(state):