11 conn = psycopg2.connect(
"dbname=nova_prod host=novadaq-far-db-03.fnal.gov user=novadaq port=5432")
13 print "I am unable to connect to the database" 15 elif det ==
'NearDet':
17 conn = psycopg2.connect(
"dbname=nova_prod host=novadaq-near-db-01.fnal.gov user=novadaq port=5432")
19 print "I am unable to connect to the database" 24 SQL =
"select run from {}.runs where run>{} and tstop is NULL and partition={} and tstart<'yesterday' order by run desc".
format(det,minrun,part)
32 cmd =
"updateRunHistoryTables -d {} {}".
format(det,run)
std::string format(const int32_t &value, const int &ndigits=8)