mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
fix: [json importer] fix empty source name
This commit is contained in:
parent
24969610cc
commit
099253f854
1 changed files with 6 additions and 2 deletions
|
@ -24,8 +24,12 @@ class DefaultFeeder:
|
||||||
Return feeder name. first part of the item_id and display in the UI
|
Return feeder name. first part of the item_id and display in the UI
|
||||||
"""
|
"""
|
||||||
if not self.name:
|
if not self.name:
|
||||||
return self.get_source()
|
name = self.get_source()
|
||||||
return self.name
|
else:
|
||||||
|
name = self.name
|
||||||
|
if not name:
|
||||||
|
name = 'default'
|
||||||
|
return name
|
||||||
|
|
||||||
def get_source(self):
|
def get_source(self):
|
||||||
return self.json_data.get('source')
|
return self.json_data.get('source')
|
||||||
|
|
Loading…
Reference in a new issue