fix report issue

This commit is contained in:
2025-08-31 21:31:10 +03:00
parent 85e6f998f7
commit eb262451ad
2 changed files with 3 additions and 1 deletions

View File

@@ -112,6 +112,8 @@ class DashboardPage:
#print(month_first_day)
if len(self.all_orders)>0:
for order in self.all_orders:
if order.get('status') != 'active':
continue
dt = self._parse_dt(order.get('created_at'))
if dt and dt.date() >= month_first_day.date():
self.orders.append(order)