Skip to content

Commit

Permalink
fix: [languages] fix language module
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Nov 8, 2023
1 parent 6c77ca5 commit 207a652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/modules/Languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def compute(self, message):
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)


Expand Down

0 comments on commit 207a652

Please sign in to comment.