From f879c31c088288468ce2c75706794c9cd6a4ecb2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 16 Oct 2025 15:42:37 -0500 Subject: wow. bad logic on that one --- tablePB.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tablePB.go b/tablePB.go index cb06bfb..edfaacb 100644 --- a/tablePB.go +++ b/tablePB.go @@ -52,9 +52,10 @@ func PrintTableLimit(pb *guipb.Table, limit int) { for i := range len(pb.AnyCols[0].Vals) { var cells []string for _, col := range pb.AnyCols { - if val, ok := getAnyCell(col, i); ok { - cells = append(cells, val) - } else { + val, ok := getAnyCell(col, i) + cells = append(cells, val) + if !ok { + // probably remove this fmt.Println("cobol TABLE CELL FAILED", col.Header.Name, i, val, ok) } } @@ -109,7 +110,7 @@ func getAnyCell(col *guipb.AnyCol, row int) (string, bool) { return fmt.Sprintf("%d", finalInt), true case guipb.ColAttr_TIME: - return "got to time", true + return Time(anyVal), true case guipb.ColAttr_DURATION: var sout string var tsProto timestamppb.Timestamp -- cgit v1.2.3