mirror of
https://github.com/yaroslaff/antifraud2gis.git
synced 2026-04-28 03:30:52 +00:00
whitelisted companies
This commit is contained in:
parent
4b4d37f813
commit
bda2fe18d0
1 changed files with 10 additions and 0 deletions
|
|
@ -515,6 +515,14 @@ class Company:
|
|||
|
||||
|
||||
def culture(self):
|
||||
|
||||
whitelisted = [
|
||||
'70000001063840471' # Дом книги, СПб
|
||||
]
|
||||
|
||||
if self.object_id in whitelisted:
|
||||
return True
|
||||
|
||||
culture_titles = ['храм', 'музей']
|
||||
title = self.get_title().lower()
|
||||
return any(sub in title for sub in culture_titles)
|
||||
|
|
@ -534,6 +542,8 @@ class CompanyList():
|
|||
|
||||
def __getitem__(self, index):
|
||||
|
||||
assert(self.path)
|
||||
|
||||
basicpath = self.path / f'{index}-basic.json.gz'
|
||||
if basicpath.exists():
|
||||
# logger.debug(f"Found company {index} by ID")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue