summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/humanTable.go b/humanTable.go
index 29e6411..b134efb 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -78,7 +78,7 @@ func (c *Chat) PrintChatGeminiTable() {
// print the header
args := []string{"uuid", "age", "ID", "Who", "model", "", "", "", "", ""}
- sizes := []int{40, 5, 5, 8, 12, 2, 2, 2, 2, 2}
+ sizes := []int{40, 5, 5, 8, 16, 2, 2, 2, 2, 2}
log.Info(cobol.StandardTableSize10(sizes, args))
for _, e := range c.GetEntries() {
@@ -94,7 +94,11 @@ func (c *Chat) PrintChatGeminiTable() {
}
if e.GetContentFile() != "" {
parts := strings.Split(e.GetContentFile(), ".")
- id = parts[3]
+ if len(parts) < 4 {
+ id = "??"
+ } else {
+ id = parts[3]
+ }
}
args = []string{e.Uuid, age, id, e.From.String(), model, "", "", "", "", ""}