From 099253f8546237b6164f90e78b16d5444fbf3fbb Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 29 Aug 2023 13:50:16 +0200 Subject: [PATCH] fix: [json importer] fix empty source name --- bin/importer/feeders/Default.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/importer/feeders/Default.py b/bin/importer/feeders/Default.py index 482d06b4..100ed1e6 100755 --- a/bin/importer/feeders/Default.py +++ b/bin/importer/feeders/Default.py @@ -24,8 +24,12 @@ class DefaultFeeder: Return feeder name. first part of the item_id and display in the UI """ if not self.name: - return self.get_source() - return self.name + name = self.get_source() + else: + name = self.name + if not name: + name = 'default' + return name def get_source(self): return self.json_data.get('source')