254686140b97de7d7f85906dcf70f78a9601d7d0 braney Mon Sep 8 15:10:10 2025 -0700 ongoing work on quickLift diff --git src/hg/lib/hui.c src/hg/lib/hui.c index b7b9fadab39..6edf6a7d6ad 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -10085,49 +10085,59 @@ { tableName = hTableForTrack(database, tdb->table); conn = hAllocConnTrack(database, tdb); } if (tableName) { char *date = firstWordInLine(sqlTableUpdate(conn, tableName)); if (date != NULL) printf("<B>Data last updated at UCSC: </B>%s<BR>\n", date); } hFreeConn(&conn); } char *getTrackHtml(char *db, char *trackName) /* Grab HTML from trackDb in native database for quickLift tracks. */ +{ +char *html = NULL; + +if (trackHubDatabase(db)) + { + // somehow get to the HTML that's not in the quickLift hub, but in the original hub + } +else { char query[4096]; sqlSafef(query, sizeof query, "tableName = '%s'", trackHubSkipHubName(trackName)); struct trackDb *loadTrackDb(char *db, char *where); struct trackDb *tdb = loadTrackDb(db, query); -char *html = tdb->html; + html = tdb->html; + //char *html = tdb->html; if (isEmpty(tdb->html)) { char *parent = trackDbSetting(tdb, "parent"); char *words[10]; chopLine(parent,words); sqlSafef(query, sizeof query, "tableName = '%s'", trackHubSkipHubName(words[0])); struct trackDb *tdb = loadTrackDb(db, query); html = tdb->html; } + } return html; } void printBbiUpdateTime(time_t *timep) /* for bbi files, print out the timep value */ { printf("<B>Data last updated at UCSC: </B>%s<BR>\n", sqlUnixTimeToDate(timep, FALSE)); } static boolean tableDescriptionsExists(struct sqlConnection *conn) /* Cache flag for whether tableDescriptions exists in conn, in case we will need to * fetch a lot of descriptions from tableDescriptions. */ { static struct hash *hash = NULL; if (hash == NULL)