Fix small lookup bug under MySQL

This commit is contained in:
Joseph Schorr 2017-01-25 12:55:56 -05:00
parent 0e04d1ce80
commit 05e9e31941

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