Skip to content

Commit 0f295ee

Browse files
Fix for forecast latest init time (#324)
* TDD: add to tests * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add exclude flag, so API interface doesnt change * let default value be None for initialization_datetime_utc --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 26e24ea commit 0f295ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nowcasting_datamodel/models/forecast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ class Forecast(EnhancedBaseModel):
478478
)
479479

480480
initialization_datetime_utc: datetime = Field(
481-
...,
481+
None,
482482
description="The time when the forecast should be initialized",
483483
exclude=True,
484484
)

0 commit comments

Comments
 (0)