mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-10-09 09:26:02 +00:00
Compare commits
2 Commits
8b79af94c1
...
09dca5c57b
Author | SHA1 | Date | |
---|---|---|---|
|
09dca5c57b | ||
|
c8bde77643 |
@@ -91,15 +91,12 @@ func (a *App) refreshTopics() {
|
|||||||
for {
|
for {
|
||||||
log.Info().Msg("Refreshing topics")
|
log.Info().Msg("Refreshing topics")
|
||||||
latestTopics := a.getDeals(9, 1, 6)
|
latestTopics := a.getDeals(9, 1, 6)
|
||||||
|
latestTopics = a.updateScores(latestTopics)
|
||||||
|
|
||||||
if len(latestTopics) > 0 {
|
log.Info().Msg("Refreshing redirects")
|
||||||
latestTopics = a.updateScores(latestTopics)
|
latestRedirects := a.getRedirects()
|
||||||
|
a.Redirects = latestRedirects
|
||||||
log.Info().Msg("Refreshing redirects")
|
a.CurrentTopics = a.stripRedirects(latestTopics)
|
||||||
latestRedirects := a.getRedirects()
|
|
||||||
a.Redirects = latestRedirects
|
|
||||||
a.CurrentTopics = a.stripRedirects(latestTopics)
|
|
||||||
}
|
|
||||||
|
|
||||||
a.LastRefresh = time.Now()
|
a.LastRefresh = time.Now()
|
||||||
rand.Seed(time.Now().UnixNano())
|
rand.Seed(time.Now().UnixNano())
|
||||||
|
Reference in New Issue
Block a user