src/hg/instinct/bioInt2/bioIntUI.c 1.15
1.15 2009/04/07 20:09:27 jsanborn
changed codes (again)
Index: src/hg/instinct/bioInt2/bioIntUI.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/bioInt2/bioIntUI.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -b -B -U 4 -r1.14 -r1.15
--- src/hg/instinct/bioInt2/bioIntUI.c 7 Apr 2009 19:01:01 -0000 1.14
+++ src/hg/instinct/bioInt2/bioIntUI.c 7 Apr 2009 20:09:27 -0000 1.15
@@ -496,16 +496,20 @@
char *name = row[0];
double val = atof(row[1]);
char *code = row[2];
- jsonAddDouble(data, name, val);
if (!sameString(code, "(null)")) // eventually need to fix this.
{
+ jsonAddString(data, name, code);
+
if (hashLookup(codeHash, code))
continue;
sd = slDoubleNew(val);
hashAdd(codeHash, code, sd);
}
+ else
+ jsonAddDouble(data, name, val);
+
}
if (hashNumEntries(codeHash) == 0)
return;