Commit 56eae3b7 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-report-typo' into 'master'

Fix typo on ReportDatasources.

See merge request noc/noc!5458
parents 2fe56067 bd5cd6de
......@@ -361,10 +361,10 @@ class ReportDataSource(object):
self.groups: List[str] = groups or []
if self.TIMEBASED and not start:
raise ValueError("Timebased Report required start param")
self.end: datetime.datetime = end.replace(tzinfo=None) or
self.start: datetime.datetime = start.replace(tzinfo=None) or self.end.replace(
) - datetime.timedelta(days=1)
self.end: datetime.datetime = end or
self.end = self.end.replace(tzinfo=None)
self.start: datetime.datetime = start or self.end - datetime.timedelta(days=1)
self.start = self.start.replace(tzinfo=None)
def get_config(cls) -> ReportConfig:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment