Skip to content

Commit 1186518

Browse files
committed
fix
1 parent 91271a0 commit 1186518

File tree

1 file changed

+2
-2
lines changed
  • nowcasting_datamodel/models

1 file changed

+2
-2
lines changed

nowcasting_datamodel/models/gsp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def validate_solar_generation_kw(cls, v):
107107
@validator("regime")
108108
def validate_regime(cls, v):
109109
"""Validate the solar_generation_kw field"""
110-
if v not in ["day-after", "in-da"]:
111-
message = f"Regime ({v}) not in 'day-after', 'in-da'"
110+
if v not in ["day-after", "in-day"]:
111+
message = f"Regime ({v}) not in 'day-after', 'in-day'"
112112
logger.debug(message)
113113
raise Exception(message)
114114
return v

0 commit comments

Comments
 (0)