fix: [trackers] fix get_all_items_sources

pull/586/head
Terrtia 2021-12-08 15:15:02 +01:00
parent ebcffd4b95
commit 19846997d9
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ def add_map_obj_id_item_id(obj_id, item_id, obj_type):
## COMMON ## ## COMMON ##
def _get_dir_source_name(directory, source_name=None, l_sources_name=set(), filter_dir=False): def _get_dir_source_name(directory, source_name=None, l_sources_name=set(), filter_dir=False):
if not l_sources_name:
l_sources_name = set()
if source_name: if source_name:
l_dir = os.listdir(os.path.join(directory, source_name)) l_dir = os.listdir(os.path.join(directory, source_name))
else: else: