Commit 5adf82ff authored by Marc Betoule's avatar Marc Betoule
Browse files

working web index

parent f6a94392
......@@ -69,7 +69,7 @@ class Web:
conn.text_factory=str
# get all instances
with conn:
l = conn.execute('select distinct seg, curr_dir from tasks order by curr_dir').fetchall()
l = conn.execute('select seg, curr_dir, seg_id, tag from segments 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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment