Skip to content

Commit 7b4ef7f

Browse files
committed
fix typo
1 parent 1e79064 commit 7b4ef7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nowcasting_datamodel/read/read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_location(session: Session, gsp_id: int) -> LocationSQL:
175175
return location
176176

177177

178-
def get_all_location(session: Session, gsp_ids: List[int] = None) -> List[LocationSQL]:
178+
def get_all_locations(session: Session, gsp_ids: List[int] = None) -> List[LocationSQL]:
179179
"""
180180
Get all location object from gsp id
181181

tests/test_read.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from nowcasting_datamodel.models import Forecast, ForecastValue, LocationSQL, MLModel, PVSystem
99
from nowcasting_datamodel.read.read import (
1010
get_all_gsp_ids_latest_forecast,
11-
get_all_location,
11+
get_all_locations,
1212
get_forecast_values,
1313
get_latest_forecast,
1414
get_latest_national_forecast,
@@ -25,7 +25,7 @@ def test_get_all_location(db_session):
2525
db_session.add(LocationSQL(label="GSP_1", gsp_id=1))
2626
db_session.add(LocationSQL(label="GSP_2", gsp_id=2))
2727

28-
locations = get_all_location(session=db_session)
28+
locations = get_all_locations(session=db_session)
2929
assert len(locations) == 2
3030

3131

0 commit comments

Comments
 (0)