Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(import): fix import error when starting script directly (DSP-1869)
  • Loading branch information
irinaschubert committed Aug 17, 2021
1 parent 141e08f commit 05b1eb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions knora/dsplib/utils/expand_all_lists.py
@@ -1,6 +1,6 @@
from typing import List, Dict
from typing import Dict, List

from knora.dsplib.utils.excel_to_json_lists import prepare_list_creation, make_json_list_from_excel
from dsplib.utils.excel_to_json_lists import make_json_list_from_excel, prepare_list_creation


def expand_lists_from_excel(data_model: Dict) -> List[str]:
Expand All @@ -20,7 +20,7 @@ def expand_lists_from_excel(data_model: Dict) -> List[str]:
for rootnode in lists:
# check if the folder parameter is used
if rootnode.get('nodes') is not None and isinstance(rootnode['nodes'], dict) and rootnode['nodes'].get(
'folder') is not None:
'folder') is not None:
# get the Excel files from the folder and crate the rootnode of the list
excel_folder = rootnode['nodes']['folder']
rootnode, excel_files = prepare_list_creation(excel_folder, rootnode.get('name'))
Expand Down

0 comments on commit 05b1eb1

Please sign in to comment.