From 64460ccaa8c8657a0243b8e6ed32ad2628392058 Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Fri, 20 Dec 2024 18:26:43 -0800 Subject: [PATCH] Allow SHA1Dir to be null --- dmfr/feed_version.go | 2 +- stats/fv.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmfr/feed_version.go b/dmfr/feed_version.go index dcf4c667..4f8fa613 100644 --- a/dmfr/feed_version.go +++ b/dmfr/feed_version.go @@ -11,7 +11,7 @@ import ( type FeedVersion struct { FeedID int SHA1 string - SHA1Dir string + SHA1Dir tt.String File string URL string EarliestCalendarDate tt.Date diff --git a/stats/fv.go b/stats/fv.go index c821ce60..6c5968e1 100644 --- a/stats/fv.go +++ b/stats/fv.go @@ -31,7 +31,7 @@ func NewFeedVersionFromReader(reader adapters.Reader) (dmfr.FeedVersion, error) } if s, ok := reader.(canDirSHA1); ok { if h, err := s.DirSHA1(); err == nil { - fv.SHA1Dir = h + fv.SHA1Dir.Set(h) } } if s, ok := reader.(canPath); ok {