Skip to content

Commit

Permalink
Merge pull request #199 from balopat/fix_panic
Browse files Browse the repository at this point in the history
fix startup panic
  • Loading branch information
tstromberg authored Aug 7, 2020
2 parents afd9acf + 602d60d commit 6e6612f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/site/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ func (h *Handlers) collectionPage(ctx context.Context, id string, refresh bool)
}

if result.RuleResults == nil {
p.Notification = template.HTML(`Gathering data ...`)
p.Notification = `Gathering data ...`
} 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
}

if result.Collection.Velocity != "" {
if result.Collection != nil && result.Collection.Velocity != "" {
p.VelocityStats = h.updater.Lookup(ctx, result.Collection.Velocity, false)
} else {
for _, s := range sts {
Expand Down

0 comments on commit 6e6612f

Please sign in to comment.