mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
fix: [languages] fix language module
This commit is contained in:
parent
6c77ca5136
commit
207a6524d7
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue