Merge pull request #2308 from coreos-inc/small-lookup-bug

Fix small lookup bug under MySQL
This commit is contained in:
josephschorr 2017-01-25 14:08:34 -05:00 committed by GitHub
commit 42262eb502

View file

@ -218,7 +218,7 @@ class RepositoryList(ApiResource):
repo['last_modified'] = last_modified_map.get(repo_id)
if parsed_args['popularity']:
repo['popularity'] = action_sum_map.get(repo_id, 0)
repo['popularity'] = float(action_sum_map.get(repo_id, 0))
if username:
repo['is_starred'] = repo_id in star_set