mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 16:23:44 -04:00
Make result of notification.cost() into a float
Cost was returning a `Decimal`, which jsonify doesn't like. Making it a float fixes the problem. [Relevant issue on github](https://github.com/pallets/flask/issues/835).
This commit is contained in:
@@ -557,7 +557,7 @@ class Notification(db.Model):
|
|||||||
desc(ProviderRates.valid_from)
|
desc(ProviderRates.valid_from)
|
||||||
).limit(1).one()
|
).limit(1).one()
|
||||||
|
|
||||||
return provider_rate.rate * self.billable_units
|
return float(provider_rate.rate * self.billable_units)
|
||||||
|
|
||||||
def completed_at(self):
|
def completed_at(self):
|
||||||
if self.status in [
|
if self.status in [
|
||||||
|
|||||||
Reference in New Issue
Block a user