From 5b7d3cf08ead89f0bad8f6e7307f3d61eed19568 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 16 Dec 2023 16:37:34 -0800 Subject: [PATCH] Update the times so the latest file is the uncompressed file --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index c33ec32..9ed670e 100644 --- a/main.go +++ b/main.go @@ -286,6 +286,13 @@ func download(current time.Time) { Fatal(err) } + // Update the times so the latest file is the uncompressed file + currentTime := time.Now() + err = os.Chtimes(sqlite_filename, currentTime, currentTime) + if err != nil { + Fatal(err) + } + log.Println("complete") }