43427b2c166a11f4adc467d69971fca322a20d3c
kent
  Tue Oct 1 14:07:24 2024 -0700
Filling in itemCount for csv files

diff --git src/hg/cirm/cdw/cdwMakeValidFile/cdwMakeValidFile.c src/hg/cirm/cdw/cdwMakeValidFile/cdwMakeValidFile.c
index 850f52b..77a276d 100644
--- src/hg/cirm/cdw/cdwMakeValidFile/cdwMakeValidFile.c
+++ src/hg/cirm/cdw/cdwMakeValidFile/cdwMakeValidFile.c
@@ -563,30 +563,31 @@
 int lineNumber = 0;
 while (lineFileNext(lf, &line, &lineSize))
     {
     ++lineNumber;
     struct slName *list = csvParse(line);
     int thisCount = slCount(list);
     if (fieldCount == 0)
 	{
 	fieldCount = thisCount;
 	}
     else
 	{
 	if (thisCount != fieldCount)
 	    errAbort("Line #%d of csv %s has %d columns. Previous rows had %d columns.", 
 		lineNumber, ef->submitFileName, thisCount, fieldCount);
+	vf->itemCount += 1;
 	}
     slFreeList(list);
     }
 lineFileClose(&lf);
 if (fieldCount == 0)
     errAbort("0 columns in csv %s", ef->submitFileName);
 }
 
 void makeValidHtml(struct sqlConnection *conn, char *path, struct cdwFile *ef, 
     struct cdwValidFile *vf)
 /* Fill in info about html file */
 {
 struct htmlPage *page = htmlPageGet(path);
 htmlPageValidateOrAbort(page);
 vf->itemCount = slCount(page->tags);