Skip to content
Snippets Groups Projects
Commit f183140d authored by Ambrus Simon's avatar Ambrus Simon
Browse files

switch to literal 1 as 1st day of month (monthrange[0] is 1st weekday #)

parent a31b4bec
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,7 @@ def test_usage_report(data_builder, file_form, as_user, as_admin):
# get month-aggregated usage report
monthrange = calendar.monthrange(today.year, today.month)
start_ts = ts_format.format(today.replace(day=monthrange[0]))
start_ts = ts_format.format(today.replace(day=1))
end_ts = ts_format.format(today.replace(day=monthrange[1]))
r = as_admin.get('/report/usage', params={
'type': 'month', 'start_date': start_ts, 'end_date': end_ts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment