Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wiedemann
MOOC-Workbench
Commits
415fbdb2
Commit
415fbdb2
authored
Jul 08, 2019
by
Jonathan Wiedemann
Browse files
fix when thre is no support
parent
1db8ebb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
MoocChecker.py
View file @
415fbdb2
...
...
@@ -221,10 +221,17 @@ def primitive_presence(doc=None, label=None, typeId=None, dimensions=None, suppo
r
.
append
(
0
)
if
support
!=
None
:
if
reference
.
Support
[
0
][
0
].
Name
==
support
:
r
.
append
(
1
)
if
reference
:
if
len
(
reference
.
Support
)
>
0
:
if
reference
.
Support
[
0
][
0
].
Name
==
support
:
r
.
append
(
1
)
else
:
r
.
append
(
0
)
else
:
r
.
append
(
0
)
else
:
r
.
append
(
0
)
if
offset
!=
None
:
attachOffset
=
[]
attachOffset
.
append
(
reference
.
AttachmentOffset
.
Base
.
x
)
...
...
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