Commit bd5cd6de authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix typo on ReportDatasources.

parent 2fe56067
......@@ -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 datetime.datetime.now()
self.start: datetime.datetime = start.replace(tzinfo=None) or self.end.replace(
tzinfo=None
) - datetime.timedelta(days=1)
self.end: datetime.datetime = end or datetime.datetime.now()
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)
@classmethod
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