Fix small lookup bug under MySQL
This commit is contained in:
parent
0e04d1ce80
commit
05e9e31941
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ class RepositoryList(ApiResource):
|
||||||
repo['last_modified'] = last_modified_map.get(repo_id)
|
repo['last_modified'] = last_modified_map.get(repo_id)
|
||||||
|
|
||||||
if parsed_args['popularity']:
|
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:
|
if username:
|
||||||
repo['is_starred'] = repo_id in star_set
|
repo['is_starred'] = repo_id in star_set
|
||||||
|
|
Reference in a new issue