From b63cb8f762ab0bba7750d813924c54c3089a66d6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 22 Sep 2024 17:40:41 +0300 Subject: can gather stats from post history --- internal/queue/queue.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/queue') diff --git a/internal/queue/queue.go b/internal/queue/queue.go index 66b7c38..e14ff90 100644 --- a/internal/queue/queue.go +++ b/internal/queue/queue.go @@ -10,6 +10,7 @@ import ( "time" "codeberg.org/snonux/gos/internal/config" + "codeberg.org/snonux/gos/internal/format" "codeberg.org/snonux/gos/internal/oi" ) @@ -39,7 +40,7 @@ func queueEntries(args config.Args) error { now := time.Now() for filePath := range ch { destPath := fmt.Sprintf("%s/db/%s.%s.queued", args.GosDir, - filepath.Base(filePath), now.Format("20060102-150405")) + filepath.Base(filePath), now.Format(format.Time)) if err := oi.Rename(filePath, destPath); err != nil { return err } -- cgit v1.2.3