Skip to content

Commit cb6dff1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d192057 commit cb6dff1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

nowcasting_datamodel/read/read_gsp.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
""" Read pv functions """
2-
from typing import List, Union
32
import logging
3+
from typing import List, Union
44

55
from sqlalchemy import desc
66
from sqlalchemy.orm import Session
77

88
from nowcasting_datamodel.models import GSPYieldSQL, LocationSQL
99

10-
1110
logger = 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

Comments
 (0)