From 0cb55f72afb835861ee5bfcb1c7cfbf1ea69b7f5 Mon Sep 17 00:00:00 2001 From: Roman Skurikhin Date: Wed, 1 Dec 2021 16:27:00 +0200 Subject: [PATCH] Fix is_non_positive - check for zero --- neuro_admin_client/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neuro_admin_client/entities.py b/neuro_admin_client/entities.py index 6ca4adc..ea2c807 100644 --- a/neuro_admin_client/entities.py +++ b/neuro_admin_client/entities.py @@ -87,7 +87,7 @@ class Balance: @property def is_non_positive(self) -> bool: - return self.credits is not None and self.credits < 0 + return self.credits is not None and self.credits <= 0 @dataclass(frozen=True)