diff options
author | cslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-10-02 13:57:52 -0400 |
---|---|---|
committer | cslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-10-02 13:57:52 -0400 |
commit | 6d20f77533a421205c9802ad4cfaecd7947e3453 (patch) | |
tree | 61dee2083b9635590d39fcdcc29476160f071c3c /steuermann/report.py | |
parent | 1342551509908d3d718f5d043f545d47aac743bb (diff) | |
download | steuermann-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.py | 8 |
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 ) |