Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
d7c46042
Commit
d7c46042
authored
Nov 20, 2012
by
Maude Le Jeune
Browse files
sorted mjd
parent
c7d17dbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
pipelet/pbview.py
pipelet/pbview.py
+6
-0
No files found.
pipelet/pbview.py
View file @
d7c46042
...
...
@@ -24,6 +24,7 @@ import cherrypy
import
auth
from
pipelet.web
import
TreeView
from
copy
import
copy
from
operator
import
itemgetter
,
attrgetter
class
PBView
(
TreeView
):
...
...
@@ -74,6 +75,7 @@ class PBView(TreeView):
for
s
in
l
:
ll
+=
conn
.
execute
(
'select input,str_input from tasks where seg_id=? and status="done"'
,(
s
[
0
],)).
fetchall
()
conn
.
close
()
lst_mjd
=
[]
lst_patch
=
[]
lst_dir
=
[]
...
...
@@ -85,9 +87,13 @@ class PBView(TreeView):
lst_dir
+=
[
f
for
f
in
tmplst
if
os
.
path
.
isdir
(
os
.
path
.
join
(
e
[
1
],
f
))
]
lst_mjd
=
list
(
set
(
lst_mjd
))
lst_patch
=
list
(
set
(
lst_patch
))
lst_dir
=
list
(
set
(
lst_dir
))
lst_mjd
=
sorted
(
lst_mjd
)
lst_dir
=
sorted
(
lst_dir
)
return
(
lst_mjd
,
lst_patch
,
lst_dir
)
@
cherrypy
.
expose
...
...
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