Skip to content

Commit 05b1eb1

Browse files
author
irinaschubert
authored
fix(import): fix import error when starting script directly (DSP-1869)
1 parent 141e08f commit 05b1eb1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎knora/dsplib/utils/expand_all_lists.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from typing import List, Dict
1+
from typing import Dict, List
22

3-
from knora.dsplib.utils.excel_to_json_lists import prepare_list_creation, make_json_list_from_excel
3+
from dsplib.utils.excel_to_json_lists import make_json_list_from_excel, prepare_list_creation
44

55

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

0 commit comments

Comments
 (0)