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 65785f9 commit fc58cc2Copy full SHA for fc58cc2
1 file changed
src/quartz_api/internal/service/uk_national/gsp_router.py
@@ -612,11 +612,12 @@ async def get_truths_for_all_gsps(
612
observer_name=f"pvlive_{regime}",
613
authdata={},
614
)
615
- out.append(GSPYieldGroupByDatetime(
616
- datetime_utc=ts,
617
- generation_kw_by_gsp_id={
618
- gsp_uuid_id_map[v.location_uuid]: v.power_kilowatts for v in tsout
619
- }),
+ if len(tsout) > 0:
+ out.append(GSPYieldGroupByDatetime(
+ datetime_utc=ts,
+ generation_kw_by_gsp_id={
+ gsp_uuid_id_map[v.location_uuid]: v.power_kilowatts for v in tsout
620
+ }),
621
622
623
return out
0 commit comments