diff options
Diffstat (limited to 'tablePB.go')
| -rw-r--r-- | tablePB.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |
