diff options
| author | Paul Buetow <paul@buetow.org> | 2024-09-22 17:40:41 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-09-22 17:40:41 +0300 |
| commit | b63cb8f762ab0bba7750d813924c54c3089a66d6 (patch) | |
| tree | 16aa1cc164cad6e03e1eaf6d3253b28f0ab27009 /internal/queue | |
| parent | aa1a599f105850e41954ac22de05bf381cfa0d9a (diff) | |
can gather stats from post history
Diffstat (limited to 'internal/queue')
| -rw-r--r-- | internal/queue/queue.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |
