From b4a948e9ef762f0368c504345c88b9453ed428ec Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 16 Jun 2021 17:51:47 +0200 Subject: [PATCH] shopping street (Q21000333) is a type of street --- matcher/model.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matcher/model.py b/matcher/model.py index 3b92679..21d4249 100644 --- a/matcher/model.py +++ b/matcher/model.py @@ -137,7 +137,11 @@ class Item(Base): return dict(d) or None def is_street(self): - return any(v and v["id"] == 'Q79007' for v in self.get_claim("P31")) + street_items = { + 'Q79007', # street + 'Q21000333', # shopping street + } + return any(v and v["id"] in street_items for v in self.get_claim("P31")) # class Claim(Base):