Skip to content

Commit

Permalink
fix(modeles): use right db engine import
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm-cbna committed May 7, 2024
1 parent c560a91 commit 5e1f8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atlas/modeles/entities/tMaillesTerritoire.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sqlalchemy import Column, Integer, MetaData, Table, Text
from sqlalchemy.ext.declarative import declarative_base

from atlas.utils import engine
from atlas.env import db

metadata = MetaData()
Base = declarative_base()
Expand All @@ -18,5 +18,5 @@ class TMaillesTerritoire(Base):
Column("geojson_maille", Text),
schema="atlas",
autoload=True,
autoload_with=engine,
autoload_with=db.engine,
)

0 comments on commit 5e1f8b3

Please sign in to comment.