fix report issue
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user