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
cb32d681
Commit
cb32d681
authored
Aug 28, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set default for wip column in case somebody changes the label
parent
2d8f9e99
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
dream/plugins/CapacityStations/CapacityStationWIP.py
dream/plugins/CapacityStations/CapacityStationWIP.py
+1
-0
dream/plugins/CapacityStations/ChangeWIPSpreadsheet.py
dream/plugins/CapacityStations/ChangeWIPSpreadsheet.py
+2
-0
No files found.
dream/plugins/CapacityStations/CapacityStationWIP.py
View file @
cb32d681
...
@@ -17,6 +17,7 @@ class CapacityStationWIP(plugin.InputPreparationPlugin):
...
@@ -17,6 +17,7 @@ class CapacityStationWIP(plugin.InputPreparationPlugin):
"""
"""
projectData
=
data
[
'input'
].
get
(
'projects_spreadsheet'
,
None
)
projectData
=
data
[
'input'
].
get
(
'projects_spreadsheet'
,
None
)
# find the column where the WIP is given
# find the column where the WIP is given
wipColumn
=
6
#default
i
=
0
i
=
0
for
element
in
projectData
[
0
]:
for
element
in
projectData
[
0
]:
if
element
==
'WIP'
:
if
element
==
'WIP'
:
...
...
dream/plugins/CapacityStations/ChangeWIPSpreadsheet.py
View file @
cb32d681
...
@@ -8,6 +8,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
...
@@ -8,6 +8,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
def
preprocess
(
self
,
data
):
def
preprocess
(
self
,
data
):
projectData
=
data
[
'input'
].
get
(
'projects_spreadsheet'
,
None
)
projectData
=
data
[
'input'
].
get
(
'projects_spreadsheet'
,
None
)
# find the column where the WIP is given
# find the column where the WIP is given
wipColumn
=
6
#default
i
=
0
i
=
0
for
element
in
projectData
[
0
]:
for
element
in
projectData
[
0
]:
if
element
==
'Completed'
:
if
element
==
'Completed'
:
...
@@ -15,6 +16,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
...
@@ -15,6 +16,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
projectData
[
0
][
i
]
=
'WIP'
projectData
[
0
][
i
]
=
'WIP'
break
break
i
+=
1
i
+=
1
if
projectData
:
if
projectData
:
alreadyConsideredProjects
=
[]
alreadyConsideredProjects
=
[]
for
row
in
range
(
1
,
len
(
projectData
)):
for
row
in
range
(
1
,
len
(
projectData
)):
...
...
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