Skip to content

Commit 7c613b4

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

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

nowcasting_datamodel/models/forecast.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
JSON,
1717
Boolean,
1818
Column,
19-
Computed,
2019
DateTime,
2120
Float,
2221
ForeignKey,
@@ -147,12 +146,7 @@ class ForecastValueSQLMixin(CreatedMixin):
147146
# server_default=Computed("CAST(EXTRACT(EPOCH FROM target_time - created_utc)/60 as INT)")
148147
# but the migration took >1 hour.
149148

150-
horizon_minutes = Column(
151-
Integer,
152-
nullable=True,
153-
index=True,
154-
default=default_horizon_minutes
155-
)
149+
horizon_minutes = Column(Integer, nullable=True, index=True, default=default_horizon_minutes)
156150

157151
@declared_attr
158152
def forecast_id(self):

nowcasting_datamodel/read/read.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,6 @@ def get_forecast_values(
527527
>= text(f"interval '{forecast_horizon_minutes} minute'")
528528
)
529529

530-
531530
# this seems to only work for postgres
532531
query = query.filter(
533532
model.created_utc - datetime.now(tz=timezone.utc)

0 commit comments

Comments
 (0)