Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Ignore name:de fixes, as they not welcome
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oderbolz committed Jul 6, 2015
1 parent 5ee7c03 commit 6ef8263
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helper/errortypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def handles_error(cls, error):
return error == 'language_unknown'

def apply_fix(self, kort_fix):
# ignore this fix if 'de' is the answer, appearently
# the German OSM community doesn't like name:de tags
if kort_fix['answer'] == 'de':
raise ErrorTypeError("Ignore fixes for name:de tag")

try:
orig_tag = kort_fix['osm_tag'].replace(':XX', '')
new_tag = '%s:%s' % (orig_tag, kort_fix['answer'])
Expand Down

0 comments on commit 6ef8263

Please sign in to comment.