whitelisted companies

This commit is contained in:
Yaroslav Polyakov 2025-05-25 17:54:06 +07:00
parent 4b4d37f813
commit bda2fe18d0

View file

@ -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")