Skip to content

Commit

Permalink
Merge pull request #20 from alan-turing-institute/bugfix/total_cost
Browse files Browse the repository at this point in the history
Cost/total cost values can be negative.
  • Loading branch information
tomaslaz authored Oct 5, 2023
2 parents 392bdfd + db0d48a commit 089c31d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "RCTab"
version = "1.1.1"
version = "1.1.2"
description = "The RCTab API. Manage Azure budgets and usage"
authors = []

Expand Down
2 changes: 1 addition & 1 deletion rctab/crud/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Usage(HashBaseModel):
effective_price: Optional[float]
cost: Optional[float]
amortised_cost: Optional[float]
total_cost: confloat(ge=0.0) # type: ignore
total_cost: float
unit_price: Optional[float]
billing_currency: Optional[str]
resource_location: Optional[str]
Expand Down

0 comments on commit 089c31d

Please sign in to comment.