Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
19d68ea9
Commit
19d68ea9
authored
Aug 07, 2018
by
Ryan Herbert
Browse files
fuse.py, vidjilparser.py fix issue when no clones
allows vidjil files to contain no clones
parent
c09e6d0a
Pipeline
#36180
passed with stage
in 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tools/fuse.py
View file @
19d68ea9
...
...
@@ -735,7 +735,8 @@ def main():
if
args
.
ijson
:
json_clones
=
vparser
.
extract
(
path_name
)
clones
=
json
.
loads
(
json_clones
)
f
+=
[
c
[
'id'
]
for
c
in
clones
[
"clones"
]]
if
clones
[
"clones"
]
is
not
None
:
f
+=
[
c
[
'id'
]
for
c
in
clones
[
"clones"
]]
else
:
jlist
=
ListWindows
()
jlist
.
load
(
path_name
,
args
.
pipeline
)
...
...
tools/vidjilparser.py
View file @
19d68ea9
...
...
@@ -49,7 +49,10 @@ class VidjilWriter(object):
else
:
if
event
==
'boolean'
:
value
=
str
(
value
).
lower
()
mstr
=
'{}'
if
value
is
None
:
mstr
=
'null'
else
:
mstr
=
'{}'
padding
=
''
if
isinstance
(
value
,
string_types
)
:
value
=
value
.
replace
(
"
\n
"
,
"
\\
n"
)
...
...
Write
Preview
Supports
Markdown
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