Skip to content

Commit

Permalink
convert throttle to real
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Jun 24, 2016
1 parent 73c9f5a commit eba1a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion socorro/external/postgresql/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get(self, **kwargs):
pv.version_string AS version,
pv.build_date AS start_date,
pv.sunset_date AS end_date,
((prc.throttle * (100)::numeric))::numeric(5,2) AS throttle,
((prc.throttle * (100)::numeric))::REAL AS throttle,
pv.featured_version AS is_featured,
pv.build_type,
pv.has_builds,
Expand All @@ -117,6 +117,7 @@ def get(self, **kwargs):
""".format(sql_where)
results = self.query(sql, sql_params).zipped()

print results[0]
return {
'hits': results,
'total': len(results),
Expand Down

0 comments on commit eba1a62

Please sign in to comment.