Fix bug so one potential place following another directly is also matched

This commit is contained in:
Arne Schlüter 2015-01-17 17:12:10 +01:00
commit adb0252130

View file

@ -30,7 +30,10 @@ def get_potential_places(article_place, article_body):
# we stop the match, so append the current match # we stop the match, so append the current match
places.append(current_match) places.append(current_match)
current_match = [] current_match = []
is_matching = False
# whe we're looking at a preposition again, just start new match
if tuple[1] not in ("APPR", "APPRART"):
is_matching = False
else: else:
# start matching when we have a preposition # start matching when we have a preposition
if tuple[1] in ("APPR", "APPRART"): if tuple[1] in ("APPR", "APPRART"):