11""" Read pv functions """
2- from typing import List , Union
32import logging
3+ from typing import List , Union
44
55from sqlalchemy import desc
66from sqlalchemy .orm import Session
77
88from nowcasting_datamodel .models import GSPYieldSQL , LocationSQL
99
10-
1110logger = logging .getLogger (__name__ )
1211
1312
@@ -51,7 +50,7 @@ def get_latest_gsp_yield(
5150 # get all results
5251 gsp_yields : List [GSPYieldSQL ] = query .all ()
5352
54- logger .debug (f' Found { len (gsp_yields )} latest gsp yields' )
53+ logger .debug (f" Found { len (gsp_yields )} latest gsp yields" )
5554
5655 if not append_to_gsps :
5756 return gsp_yields
@@ -64,7 +63,7 @@ def get_latest_gsp_yield(
6463
6564 gsp_systems_with_gsp_yields .append (gsp )
6665
67- logger .debug (f' Found { len (gsp_systems_with_gsp_yields )} gsps with yields' )
66+ logger .debug (f" Found { len (gsp_systems_with_gsp_yields )} gsps with yields" )
6867
6968 # add pv systems that dont have any pv yields
7069 gsp_systems_with_gsp_yields_ids = [gsp .id for gsp in gsp_systems_with_gsp_yields ]
@@ -76,7 +75,7 @@ def get_latest_gsp_yield(
7675
7776 gsp_systems_with_no_gsp_yields .append (gsp )
7877
79- logger .debug (f' Found { len (gsp_systems_with_gsp_yields )} gsps with no yields' )
78+ logger .debug (f" Found { len (gsp_systems_with_gsp_yields )} gsps with no yields" )
8079
8180 all_gsp_systems = gsp_systems_with_gsp_yields + gsp_systems_with_no_gsp_yields
8281
0 commit comments