Skip to content

Commit

Permalink
Merge pull request #222 from tstromberg/better-gathering
Browse files Browse the repository at this point in the history
Improve gathering data message
  • Loading branch information
tstromberg authored Oct 7, 2020
2 parents 5c5280c + 2db9819 commit 6bbebb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/site/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (h *Handlers) collectionPage(ctx context.Context, id string, refresh bool)
}

if result.RuleResults == nil {
p.Notification = template.HTML(fmt.Sprintf("Gathering data (%d issues examined) ...", h.party.ConversationsTotal()))
p.Notification = template.HTML(fmt.Sprintf("No cached data found - performing initial data download (%d issues examined) ...", h.party.ConversationsTotal()))
} else if p.ResultAge > h.warnAge {
p.Notification = template.HTML(fmt.Sprintf(`Refreshing data in the background. Displayed data may be up to %s old. Use <a href="https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache">Shift-Reload</a> to force a data refresh at any time.`, humanDuration(time.Since(result.OldestInput))))
p.Stale = true
Expand Down

0 comments on commit 6bbebb2

Please sign in to comment.