fix: [languages] fix language module

dev
terrtia 2023-11-08 11:59:06 +01:00
parent 6c77ca5136
commit 207a6524d7
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 3 additions and 3 deletions

View File

@ -28,9 +28,9 @@ class Languages(AbstractModule):
obj = self.get_obj() obj = self.get_obj()
if obj.type == 'item': if obj.type == 'item':
if item.is_crawled(): if obj.is_crawled():
domain = Domain(item.get_domain()) domain = Domain(obj.get_domain())
for lang in item.get_languages(min_probability=0.8): for lang in obj.get_languages(min_probability=0.8):
domain.add_language(lang.language) domain.add_language(lang.language)