summaryrefslogtreecommitdiff
path: root/internal/queue/queue.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-10-31 22:54:36 +0200
committerPaul Buetow <paul@buetow.org>2024-10-31 22:54:36 +0200
commit1c143f2e4faeb803f5f7c96f29c1ef447a0b2097 (patch)
treef99d5dd24d0dfce527e8f78501e3ab007c529a48 /internal/queue/queue.go
parentedfbee2da241372271d2a32cff8ab7409e910727 (diff)
s/ent/en/ ...
Diffstat (limited to 'internal/queue/queue.go')
-rw-r--r--internal/queue/queue.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/queue/queue.go b/internal/queue/queue.go
index 6df59df..f6209f3 100644
--- a/internal/queue/queue.go
+++ b/internal/queue/queue.go
@@ -112,10 +112,9 @@ func queuePlatforms(args config.Args) error {
}
// Queue ./db/queued/*.txt.STAMP.queued to ./db/platforms/PLATFORM/*.txt.STAMP.queued
-// TODO: Rename all ent to en
-func queuePlatform(ent entry.Entry, gosDir, platform string) error {
+func queuePlatform(en entry.Entry, gosDir, platform string) error {
destDir := filepath.Join(gosDir, "db/platforms", strings.ToLower(platform))
- destPath := filepath.Join(destDir, filepath.Base(ent.Path))
+ destPath := filepath.Join(destDir, filepath.Base(en.Path))
postedFile := fmt.Sprintf("%s.posted", strings.TrimSuffix(destPath, ".queued"))
// Entry already posted platform?
@@ -124,8 +123,8 @@ func queuePlatform(ent entry.Entry, gosDir, platform string) error {
return nil
}
- log.Println("Queuing", ent.Path, "->", destPath)
- return oi.CopyFile(ent.Path, destPath)
+ log.Println("Queuing", en.Path, "->", destPath)
+ return oi.CopyFile(en.Path, destPath)
}
func deleteFiles(path, suffix string, olderThan time.Time) error {