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
5adf82ff
Commit
5adf82ff
authored
Aug 19, 2010
by
Marc Betoule
Browse files
working web index
parent
f6a94392
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pipelet/web.py
pipelet/web.py
+3
-3
No files found.
pipelet/web.py
View file @
5adf82ff
...
...
@@ -69,7 +69,7 @@ class Web:
conn
.
text_factory
=
str
# get all instances
with
conn
:
l
=
conn
.
execute
(
'select
distinct
seg, curr_dir
from task
s order by curr_dir'
).
fetchall
()
l
=
conn
.
execute
(
'select seg, curr_dir
, seg_id, tag from segment
s order by curr_dir'
).
fetchall
()
indent
=
-
1
# select a subset
...
...
@@ -82,8 +82,8 @@ class Web:
for
s
in
l
:
with
conn
:
e
=
conn
.
execute
(
'select status, count(
curr_dir
) from tasks where
curr_dir
=? group by status'
,(
s
[
1
],)).
fetchall
()
ss
=
conn
.
execute
(
'select tag from tasks where curr_dir=? limit 1'
,(
s
[
1
],)).
fetchone
()[
0
]
e
=
conn
.
execute
(
'select status, count(
status
) from tasks where
seg_id
=? group by status'
,(
s
[
2
],)).
fetchall
()
ss
=
s
[
3
]
#try:
# with closing(file(os.path.join(s[1],"stdout"))) as f:
# ss = f.read()
...
...
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