From 207a6524d7e93d7c4b89426189fa4ac2a5eda65d Mon Sep 17 00:00:00 2001 From: terrtia Date: Wed, 8 Nov 2023 11:59:06 +0100 Subject: [PATCH] fix: [languages] fix language module --- bin/modules/Languages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/modules/Languages.py b/bin/modules/Languages.py index 53c3c999..69e490a2 100755 --- a/bin/modules/Languages.py +++ b/bin/modules/Languages.py @@ -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)