Namespaces | Variables
dbjson.py File Reference

Go to the source code of this file.

Namespaces

 dbjson
 

Variables

 dbjson.run = sys.argv[1]
 
 dbjson.conn = psycopg2.connect("dbname=lbne35t_prod host=ifdbrep.fnal.gov port=5440 user=lbne_reader password=dune35t")
 
 dbjson.cur = conn.cursor()
 
string dbjson.SQL = "select * from dune35t.run_summary where run="
 
 dbjson.row = cur.fetchone()
 
 dbjson.cfg = row[1]
 
 dbjson.runType = row[2]
 
 dbjson.comp = row[3]
 
 dbjson.tstart = str(row[4]).replace(" ","T")[0:19]
 
 dbjson.tstop = str(row[5]).replace(" ","T")[0:19]