update tag scores each pass
This commit is contained in:
parent
473e397a7b
commit
c1d29237b0
1 changed files with 6 additions and 0 deletions
|
|
@ -459,6 +459,10 @@ class RepoManager(object):
|
|||
# so a day old unused repo gets about the regen same score as a
|
||||
# 2.4-hour-old, very popular repo
|
||||
|
||||
def updateTagScores(self):
|
||||
for entry in self.needed_tags.values():
|
||||
self.setTagScore(entry)
|
||||
|
||||
def updateRepos(self):
|
||||
self.checkTasks()
|
||||
self.logger.debug("Current tasks: %r" % self.tasks)
|
||||
|
|
@ -479,6 +483,8 @@ class RepoManager(object):
|
|||
|
||||
self.regenRepos()
|
||||
|
||||
self.updateTagScores()
|
||||
|
||||
# trigger deletes
|
||||
n_deletes = 0
|
||||
for repo in self.repos.values():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue