Skip to content

Commit 4767fa6

Browse files
authored
Merge pull request #327 from ImMin5/master
Modify analyze Daily date range 1 month -> 31days
2 parents f0d9779 + be1ef56 commit 4767fa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spaceone/cost_analysis/manager/cost_manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@ def _check_date_range(self, query):
314314
)
315315

316316
if granularity == "DAILY":
317-
if start + relativedelta(months=1) < end:
317+
if start + relativedelta(days=31) < end:
318318
raise ERROR_INVALID_DATE_RANGE(
319319
start=start_str,
320320
end=end_str,
321-
reason="Request up to a maximum of 1 month.",
321+
reason="Request up to a maximum of 1 month. or 31 days.",
322322
)
323323

324324
if start + relativedelta(months=12) < now.replace(day=1):

0 commit comments

Comments
 (0)