Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrea Lorenzon
H5nuvola2
Commits
cad00b8f
Commit
cad00b8f
authored
May 04, 2021
by
Andrea Lorenzon
💬
Browse files
updated jstreeceric
parent
df5a76c8
Pipeline
#1349
passed with stages
in 1 minute and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/jsTreeCeric.py
View file @
cad00b8f
...
...
@@ -22,8 +22,10 @@ def JSON_from_folder(rootDir: str) -> List[dict]:
subdir
=
dict
.
fromkeys
(
files
)
parent
=
reduce
(
dict
.
get
,
folders
[:
-
1
],
d
)
parent
[
folders
[
-
1
]]
=
subdir
return
DictToJsTree
(
d
[
settings
.
fileFolderName
[
settings
.
deploy
]])
ff
=
settings
.
fileFolderName
.
get
(
settings
.
deploy
)
print
(
"d"
,
d
)
print
(
"ff"
,
ff
)
return
DictToJsTree
(
d
[
ff
])
def
DictToJsTree
(
dic
:
dict
)
->
List
[
dict
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment