fix parsing of operator in special phrases

Because of unstripped input, the operators wouldn't match.
This commit is contained in:
Sarah Hoffmann
2021-10-25 19:46:30 +02:00
parent 8e439d3dd9
commit 5a1c3dbea3
2 changed files with 22 additions and 7 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()
self.p_operator = '-' if p_operator not in ('near', 'in') else p_operator