4b23fe9bf2814ad6184ba73edc8723c6fb2ee499 angie Fri Apr 15 11:04:07 2016 -0700 Yikes, the new hgGateway was showing inactive dbs. refs #15277 diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 0fb8cf0..d2f38de 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -4397,31 +4397,32 @@ struct slPair *hGetDbOptionsForGenome(char *genome) /* Return a list of slPairs, each containing db menu value and menu label, * useful for constructing an assembly menu for the given genome. */ { struct slPair *pairList = NULL; if (isHubTrack(genome)) { char *clade = trackHubAssemblyClade(genome); struct dbDb *hubDbDbList = trackHubGetDbDbs(clade); pairList = trackHubDbDbToValueLabel(hubDbDbList); } else { struct dyString *dy = sqlDyStringCreate("select name,description from %s " - "where genome = '%s' order by orderKey", dbDbTable(), genome); + "where genome = '%s' and active " + "order by orderKey", dbDbTable(), genome); struct sqlConnection *conn = hConnectCentral(); pairList = sqlQuickPairList(conn, dy->string); hDisconnectCentral(&conn); dyStringFree(&dy); } return pairList; } struct slName *hLiftOverFromDbs() /* Return a list of names of the DBs in the * fromDb column of the liftOverChain.*/ { struct slName *names = NULL; struct liftOverChain *chainList = liftOverChainListFiltered(), *chain; for (chain = chainList; chain != NULL; chain = chain->next)