Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
e7092d86
Commit
e7092d86
authored
Feb 19, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReadJSSkills corrected
parent
1fb999f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
dream/plugins/ReadJSSkills.py
dream/plugins/ReadJSSkills.py
+17
-17
No files found.
dream/plugins/ReadJSSkills.py
View file @
e7092d86
...
...
@@ -5,7 +5,6 @@ import random
import
operator
from
datetime
import
datetime
import
copy
import
routeQuery
from
datetime
import
datetime
from
dream.plugins
import
plugin
...
...
@@ -18,12 +17,13 @@ class ReadJSSkills(plugin.InputPreparationPlugin):
def
preprocess
(
self
,
data
):
""" Read the operator and the tasks they can perform and adds them to them to the graph.
"""
PBData
=
data
[
'input'
].
get
(
'operator_skill_spreadsheet'
,
None
)
PBData
=
data
[
'input'
].
get
(
'operator_skill
s
_spreadsheet'
,
None
)
node
=
data
[
'graph'
][
'node'
]
if
PBData
:
PBData
.
pop
(
0
)
# pop the column names
for
PBitem
in
PBData
:
PBId
=
PBitem
[
0
]
if
PBId
:
PBId
=
PBId
.
split
(
"-"
)[
0
]
# in case there is no id, do not process the element
if
not
PBId
:
...
...
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