Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
backend: pylint doesnt know how sqlalchemy works
Browse files Browse the repository at this point in the history
  • Loading branch information
OxygenCobalt committed Mar 24, 2024
1 parent 181f5d5 commit d758648
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def upgrade() -> None:
"van_location",
sa.Column("id", sa.Integer, primary_key=True),
sa.Column(
"created_at", sa.DateTime, nullable=False, server_default=sa.func.now()
"created_at", sa.DateTime, nullable=False, server_default=sa.func.now() # pylint: disable=all
),
sa.Column("session_id", sa.Integer, nullable=False),
sa.Column("lat", sa.Float, nullable=False),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def upgrade() -> None:
"van_tracker_session",
sa.Column("id", sa.Integer, primary_key=True),
sa.Column(
"created_at", sa.DateTime, nullable=False, server_default=sa.func.now()
"created_at", sa.DateTime, nullable=False, server_default=sa.func.now() # pylint: disable=all
),
sa.Column(
"updated_at",
Expand Down
4 changes: 2 additions & 2 deletions backend/src/model/van_tracker_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class VanTrackerSession(Base):
primary_key=True, autoincrement=True, nullable=False
)
created_at: Mapped[datetime] = mapped_column(
TZDateTime, nullable=False, server_default=func.now()
TZDateTime, nullable=False, server_default=func.now() # pylint: disable=all
)
updated_at: Mapped[datetime] = mapped_column(
TZDateTime, nullable=False, server_default=func.now(), onupdate=func.now()
TZDateTime, nullable=False, server_default=func.now(), onupdate=func.now() # pylint: disable=all
)
van_guid: Mapped[str] = mapped_column(nullable=False)
route_id: Mapped[int] = mapped_column(nullable=False)
Expand Down

0 comments on commit d758648

Please sign in to comment.