Skip to content

Commit f0848a1

Browse files
committed
fix gsp read
1 parent 1186518 commit f0848a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nowcasting_datamodel/read/read_gsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_latest_gsp_yield(
3737
query = query.distinct(LocationSQL.id)
3838

3939
# select only th epv systems we want
40-
query = query.where(LocationSQL.id.in_(gsp_ids))
40+
query = query.where(LocationSQL.gsp_id.in_(gsp_ids))
4141

4242
# order by 'created_utc' desc, so we get the latest one
4343
query = query.order_by(

0 commit comments

Comments
 (0)