aboutsummaryrefslogtreecommitdiff
path: root/steuermann/report.py
diff options
context:
space:
mode:
authorcslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-10-02 13:57:52 -0400
committercslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-10-02 13:57:52 -0400
commit6d20f77533a421205c9802ad4cfaecd7947e3453 (patch)
tree61dee2083b9635590d39fcdcc29476160f071c3c /steuermann/report.py
parent1342551509908d3d718f5d043f545d47aac743bb (diff)
downloadsteuermann-6d20f77533a421205c9802ad4cfaecd7947e3453.tar.gz
partial implementation of collecting logs locally for incorporation into build report
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@805 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/report.py')
-rw-r--r--steuermann/report.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/steuermann/report.py b/steuermann/report.py
index 97dda29..17ccd6d 100644
--- a/steuermann/report.py
+++ b/steuermann/report.py
@@ -32,12 +32,12 @@ simple_status = ( 'N', 'P', 'S', 'W' )
def info_callback_gui( db, run, tablename, host, cmd ) :
c = db.cursor()
- c.execute("SELECT status, start_time, end_time FROM sm_status WHERE run = ? AND host = ? AND tablename = ? AND cmd = ?",(
+ c.execute("SELECT status, start_time, end_time, logs FROM sm_status WHERE run = ? AND host = ? AND tablename = ? AND cmd = ?",(
run, host, tablename, cmd ) )
x = c.fetchone()
if x is None :
return ''
- status, start_time, end_time = x
+ status, start_time, end_time, logs_exist = x
if start_time is None :
start_time = ''
if end_time is None :
@@ -71,6 +71,10 @@ def info_callback_gui( db, run, tablename, host, cmd ) :
link = link + " : " + st + " - " + et
# h_result = '%s %s %s %s'%(link, d_status, start_time, end_time)
+
+ if logs_exist:
+ link += '<BR/>LINK'
+
h_result = link
return ( t_result, h_result )