Skip to content

Commit

Permalink
chore: Upgrade sqlalchemy in frontend to latest 1.x.x version (#2246)
Browse files Browse the repository at this point in the history
* Upgrade sqlalchemy in frontend

Signed-off-by: Kristen Armes <[email protected]>

* Fix test

Signed-off-by: Kristen Armes <[email protected]>

---------

Signed-off-by: Kristen Armes <[email protected]>
  • Loading branch information
kristenarmes authored Apr 11, 2024
1 parent 7a91ad6 commit 6d7b730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
try:
from sqlalchemy import Column, Integer, String, DateTime, create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.inspection import inspect
from sqlalchemy.orm import sessionmaker
except ModuleNotFoundError:
pass
Expand Down Expand Up @@ -37,7 +38,7 @@ def _setup_mysql(self) -> None:
session = sessionmaker(bind=self.engine)()

# add dummy announcements to preview
if not self.engine.dialect.has_table(self.engine, DBAnnouncement.__tablename__):
if not inspect(self.engine).has_table(DBAnnouncement.__tablename__):
Base.metadata.create_all(self.engine)

announcements = []
Expand Down
2 changes: 1 addition & 1 deletion frontend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

responses==0.12.1
SQLAlchemy==1.3.23
SQLAlchemy==1.4.52
retrying>=1.3.3,<2.0

# Backport of PEP 557, Data Classes for Python 3.6.
Expand Down

0 comments on commit 6d7b730

Please sign in to comment.