summaryrefslogtreecommitdiff
path: root/tablePB.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 15:42:37 -0500
committerJeff Carr <[email protected]>2025-10-16 15:42:37 -0500
commitf879c31c088288468ce2c75706794c9cd6a4ecb2 (patch)
treef42bcf1a84baaab7f95cf83070d46baca05f0fb2 /tablePB.go
parentf315f5b6423e5c9d7e788e8eeb7ea33771530bf1 (diff)
wow. bad logic on that one
Diffstat (limited to 'tablePB.go')
-rw-r--r--tablePB.go9
1 files 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