mirror of
https://github.com/ae-utbm/sith.git
synced 2025-11-10 14:03:12 +00:00
apply new ruff rules
This commit is contained in:
@@ -86,7 +86,7 @@ class CustomerQuerySet(models.QuerySet):
|
||||
.annotate(res=Sum(F("unit_price") * F("quantity"), default=0))
|
||||
.values("res")
|
||||
)
|
||||
return self.update(amount=Coalesce(money_in - money_out, Decimal("0")))
|
||||
return self.update(amount=Coalesce(money_in - money_out, Decimal(0)))
|
||||
|
||||
|
||||
class Customer(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user