Skip to content
Snippets Groups Projects
Verified Commit 6f61874d authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

simplify

parent f629601c
No related branches found
No related tags found
No related merge requests found
......@@ -12,21 +12,8 @@ localIndexArr, orderArr = get_indexArr(sections)
index = generate_index_top()
whiteList = ''
for folder in cardDirs:
# FolderFlag gets set to true at the first iteration
folderFlag = True
# check if folder exists
if path.isdir(folder) and folder not in ignore:
dirs = os.listdir(folder)
dirs = natsorted(dirs)
for d in dirs:
if d[0] != "." and d not in ignore and has_subdirs(folder + "/" + d):
# walk through the folders with all the cards
folderFlag, localIndexArr, whiteList = core(localroot, folder, localIndexArr, orderArr, whiteList, folderFlag, d, sections)
# walk through the folders with all the cards
folderFlag, localIndexArr, whiteList = core(cardDirs, localroot, localIndexArr, orderArr, sections, ignore)
localIndexArr = sort_sections(sections, localIndexArr, orderArr)
index = generate_index(index, sections, localIndexArr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment