fixing bugs with ci pipeline
This commit is contained in:
@ -11,7 +11,6 @@ db_username = os.getenv("DB_USERNAME")
|
||||
db_password = os.getenv("DB_PASSWORD")
|
||||
|
||||
# Construct the database URL
|
||||
# SQLALCHEMY_DATABASE_URL = f"mysql://{db_username}:{db_password}@localhost:3306/aare_db"
|
||||
SQLALCHEMY_DATABASE_URL = f"mysql://{db_username}:{db_password}@localhost:3306/aare_db"
|
||||
|
||||
# Remove the `connect_args` parameter
|
||||
@ -32,9 +31,6 @@ def get_db():
|
||||
|
||||
|
||||
def init_db():
|
||||
# Import models inside function to avoid circular dependency
|
||||
from . import models
|
||||
|
||||
Base.metadata.create_all(bind=engine)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user