We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91271a0 commit 1186518Copy full SHA for 1186518
nowcasting_datamodel/models/gsp.py
@@ -107,8 +107,8 @@ def validate_solar_generation_kw(cls, v):
107
@validator("regime")
108
def validate_regime(cls, v):
109
"""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'"
+ if v not in ["day-after", "in-day"]:
+ message = f"Regime ({v}) not in 'day-after', 'in-day'"
112
logger.debug(message)
113
raise Exception(message)
114
return v
0 commit comments