Skip to content

Commit e3c775f

Browse files
Merge pull request #79 from openclimatefix/update-for-ss
split out provider in read function
2 parents 9472927 + 2a2783d commit e3c775f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nowcasting_datamodel/read/read_pv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def get_pv_systems(
3838
# filter on pv_system_id and provider
3939
if pv_systems_ids is not None:
4040
query = query.filter(PVSystemSQL.pv_system_id.in_(pv_systems_ids))
41+
42+
if provider is not None:
4143
query = query.filter(PVSystemSQL.provider == provider)
4244

4345
# order by 'created_utc' desc, so we get the latest one

0 commit comments

Comments
 (0)