Merge pull request #2486 from lonvia/fix-special-phrases

Fix parsing of operator in special phrases
This commit is contained in:
Sarah Hoffmann
2021-10-25 21:45:08 +02:00
committed by GitHub
3 changed files with 24 additions and 9 deletions

View File

@@ -16,4 +16,5 @@ class SpecialPhrase():
# Hack around a bug where building=yes was imported with quotes into the wiki
self.p_type = re.sub(r'\"|"', '', p_type.strip())
# Needed if some operator in the wiki are not written in english
p_operator = p_operator.strip().lower()
self.p_operator = '-' if p_operator not in ('near', 'in') else p_operator