diff --git a/model/torrent.go b/model/torrent.go index 01728394..8453c471 100644 --- a/model/torrent.go +++ b/model/torrent.go @@ -274,7 +274,7 @@ func (t *TorrentJSON) ToTorrent() Torrent { Seeders: t.Seeders, Leechers: t.Leechers, Completed: t.Completed, - LastScrape: t.LastScrape, + LastScrape: time.Now(), // Not stored in ES, counts won't show without value Language: t.Language, //FileList: TODO } diff --git a/templates/home.html b/templates/home.html index b58c12be..0b2f52b6 100644 --- a/templates/home.html +++ b/templates/home.html @@ -83,9 +83,13 @@
+ {{if .LastScrape.IsZero}} + + {{else}} + {{end}} {{end}} @@ -260,4 +264,4 @@ Torrents.LastID = {{ lastID .URL .Models }}; if (Torrents.LastID > 0) Torrents.CanRefresh = true; -{{end}} +{{end}} \ No newline at end of file