018cbc97ab941258f8045e7cf37697efc2fbba0c chinhli Tue Aug 16 16:56:03 2011 -0700 Feature #4916 hgGene needs a "data last updated" line diff --git src/hg/hgGene/hgGene.c src/hg/hgGene/hgGene.c index 5d62b87..5536202 100644 --- src/hg/hgGene/hgGene.c +++ src/hg/hgGene/hgGene.c @@ -472,30 +472,32 @@ { printf("Press \"+\" in the title bar above to open this section."); } dyStringFree(&header); } } void webMain(struct sqlConnection *conn) /* Set up fancy web page with hotlinks bar and * sections. */ { struct section *sectionList = NULL; printDescription(curGeneId, conn); sectionList = loadSectionList(conn); printIndex(sectionList); +struct trackDb *tdb = hTrackDbForTrack(database, genomeSetting("knownGene")); +printUpdateTime(database, tdb, NULL); printSections(sectionList, conn, curGeneId); } static char *findGeneId(struct sqlConnection *conn, char *name) /* Given some sort of gene name, see if it is in our primary gene table, and if not * look it up in alias table if we have one. */ { /* Just check if it's in the main gene table, and if so return input name. */ char *mainTable = genomeSetting("knownGene"); char query[256]; safef(query, sizeof(query), "select count(*) from %s where name = '%s'", mainTable, name); if (sqlQuickNum(conn, query) > 0) return name; else {