We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1acb079 commit ed258c4Copy full SHA for ed258c4
openleadr/client.py
@@ -651,6 +651,10 @@ async def update_report(self, report_request_id):
651
outgoing_report.intervals = intervals
652
logger.info(f"The number of intervals in the report is now {len(outgoing_report.intervals)}")
653
654
+ # Always set the dtstart of the report to the earliest datetime of any of the intervals
655
+ if outgoing_report.intervals:
656
+ outgoing_report.dtstart = min(interval.dtstart for interval in outgoing_report.intervals)
657
+
658
# Figure out if the report is complete after this sampling
659
if data_collection_mode == 'incremental' and report_back_duration is not None\
660
and report_back_duration > granularity:
0 commit comments