Merge pull request #743 from alphagov/stringify-cost-attr-on-v2-get-notification

Stringify the cost before passing to jsonify as it complains otherwise
This commit is contained in:
Paul Craig
2016-11-23 10:50:59 +00:00
committed by GitHub
3 changed files with 26 additions and 6 deletions

View File

@@ -557,7 +557,7 @@ class Notification(db.Model):
desc(ProviderRates.valid_from)
).limit(1).one()
return provider_rate.rate * self.billable_units
return float(provider_rate.rate * self.billable_units)
def completed_at(self):
if self.status in [