Chart polish (#2973)

This commit is contained in:
Vlad Stan
2025-02-17 14:30:16 +02:00
committed by GitHub
parent 60de308c8f
commit c08623277e
7 changed files with 170 additions and 130 deletions
+2
View File
@@ -440,6 +440,8 @@ async def get_payments_daily_stats(
balance_total: float = 0
_none = PaymentDailyStats(date=datetime.now(timezone.utc))
if len(data_in) == 0 and len(data_out) == 0:
return []
if len(data_in) == 0:
data_in = [_none]
if len(data_out) == 0: