Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 9, 2024
1 parent a627d86 commit 00c4b49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions nowcasting_datamodel/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from sqlalchemy.orm.session import Session

from nowcasting_datamodel.models.base import Base_Forecast
from nowcasting_datamodel.models.forecast import get_partitions

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -38,7 +37,7 @@ def create_all(self):
self.base.metadata.drop_all(self.engine)
self.base.metadata.create_all(self.engine)

#def make_partitions(self):
# def make_partitions(self):
# """Make partitions tables (useful for testing)"""
# # get partitions
# self.partitions = get_partitions(2019, 1, 2022, 7)
Expand Down
2 changes: 1 addition & 1 deletion nowcasting_datamodel/models/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class ForecastValueSQL(
forecast = relationship("ForecastSQL", back_populates="forecast_values")


#def get_partitions(start_year: int, start_month: int, end_year: int, end_month: int):
# def get_partitions(start_year: int, start_month: int, end_year: int, end_month: int):
# """Make partitions.
#
# This is used in the connections object for testing.
Expand Down

0 comments on commit 00c4b49

Please sign in to comment.