fix: [languages] fix language module

This commit is contained in:
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

View file

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