small alert fix
This commit is contained in:
parent
01dafa0d88
commit
861c672910
2 changed files with 10 additions and 12 deletions
|
|
@ -23,9 +23,3 @@ ergoEngine = create_engine(
|
|||
)
|
||||
|
||||
SessionMaker = sessionmaker(autocommit=False, autoflush=False, bind=engine, )
|
||||
|
||||
|
||||
def ergoQueryFetchOne(q: str, **kwargs):
|
||||
with ergoEngine.connect() as connection:
|
||||
connection.execute(text("use ergo"))
|
||||
return connection.execute(text(q), kwargs).fetchone()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue