93aa0d638500f9dc142eed45be1c9687a9d75369 max Tue Dec 4 03:10:41 2018 -0800 removing my stupid and useless hgBeacon debug message that somehow even made it into the build, as per email from Jairo diff --git src/hg/hgBeacon/hgBeacon src/hg/hgBeacon/hgBeacon index 45caef1..fbb4af8 100755 --- src/hg/hgBeacon/hgBeacon +++ src/hg/hgBeacon/hgBeacon @@ -301,31 +301,30 @@ ' allele text' # alternate allele, can also be IATG = insertion of ATG or D15 = deletion of 15 bp ')') conn.execute(_tableDef % tableName) conn.commit() #' PRIMARY KEY (chrom, pos, allele) ' def dbOpen(mustExist=False): " open the sqlite db and return a DB connection object " dbDir = dirname(__file__) # directory where script is located fqdn = socket.getfqdn() if hostName.endswith("ucsc.edu") or fqdn.endswith(".ucsc.edu") or fqdn.endswith(".sdsc.edu"): # at UCSC, the data is not in the CGI-BIN directory dbDir = "/gbdb/hg19/beacon/" dbName = join(dbDir, SQLITEDB) - print("Opening %s" % dbName) if not exists(dbName) and mustExist: errAbort("Database file %s does not exist. This beacon is not serving any data." % dbName) conn = sqlite3.Connection(dbName) return conn def dbListTables(conn): " return list of tables in sqlite db " cursor = conn.cursor() cursor.execute("SELECT name FROM sqlite_master WHERE type='table';") rows = cursor.fetchall() tables = [] for row in rows: tables.append(row[0]) return tables