Small fixes found by running full db tests
This commit is contained in:
parent
a1a4b68306
commit
d7f3ef96ce
3 changed files with 8 additions and 8 deletions
|
@ -93,8 +93,11 @@ def update_repository_score(repo):
|
|||
logger.debug('Got bucket tuple %s for bucket %s for repository %s', bucket_tuple, bucket,
|
||||
repo.id)
|
||||
|
||||
bucket_sum = bucket_tuple[0]
|
||||
bucket_count = bucket_tuple[1]
|
||||
if bucket_tuple[0] is None:
|
||||
continue
|
||||
|
||||
bucket_sum = float(bucket_tuple[0])
|
||||
bucket_count = int(bucket_tuple[1])
|
||||
if not bucket_count:
|
||||
continue
|
||||
|
||||
|
|
Reference in a new issue