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
e6e374ce
Commit
e6e374ce
authored
Mar 05, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin that preprocess shift data is corrected
parent
068b2975
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dream/plugins/ReadJSShifts.py
dream/plugins/ReadJSShifts.py
+5
-3
No files found.
dream/plugins/ReadJSShifts.py
View file @
e6e374ce
...
...
@@ -93,9 +93,11 @@ class ReadJSShifts(plugin.InputPreparationPlugin, TimeSupportMixin):
breakStart
,
breakEnd
=
timePair
timeStartList
.
append
(
breakEnd
)
timeEndList
.
insert
(
0
,
breakStart
)
#if it is the current row is an extended row for the information belonging to a resource, and no resource name is entered
entityID
=
line
[
0
].
split
(
"-"
)[
0
]
if
line
[
0
]:
entityID
=
line
[
0
].
split
(
"-"
)[
0
]
else
:
entityID
=
""
if
str
(
entityID
)
==
''
:
#take it as a continuation for the last entered resource
for
index
,
start
in
enumerate
(
timeStartList
):
...
...
@@ -124,7 +126,7 @@ class ReadJSShifts(plugin.InputPreparationPlugin, TimeSupportMixin):
#sorts the list in case the records were not entered in correct ascending order
for
info
in
shiftPattern
:
shiftPattern
[
info
].
sort
(
key
=
itemgetter
(
0
))
shiftPattern
[
info
].
sort
(
key
=
itemgetter
(
0
))
for
node
,
node_data
in
nodes
.
items
():
if
node
in
shiftPattern
:
...
...
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