|
@@ -189,7 +189,8 @@ def volume_internal(conn: Connection[TupleRow], path: str, query: FormsDict):
|
|
yield template("done") + template("progress", **progress)
|
|
yield template("done") + template("progress", **progress)
|
|
|
|
|
|
now = datetime.now().date()
|
|
now = datetime.now().date()
|
|
- data = data[data['ts_month'] == date(now.year,now.month-1,1)]
|
|
|
|
|
|
+ prev_month = date(now.year,now.month-1,1) if now.month > 1 else date(now.year-1, 12, 1)
|
|
|
|
+ data = data[data['ts_month'] == prev_month ]
|
|
group = 'group'
|
|
group = 'group'
|
|
for g, _g in zip(
|
|
for g, _g in zip(
|
|
('category', 'group'),
|
|
('category', 'group'),
|