mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-10 03:14:19 -04:00
Changes for sqlalchemy 2.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from flask import Blueprint, jsonify, request
|
||||
from sqlalchemy import text
|
||||
|
||||
from app import db, version
|
||||
from app.dao.organization_dao import dao_count_organizations_with_live_services
|
||||
@@ -37,5 +38,5 @@ def live_service_and_organization_counts():
|
||||
|
||||
def get_db_version():
|
||||
query = "SELECT version_num FROM alembic_version"
|
||||
full_name = db.session.execute(query).fetchone()[0]
|
||||
full_name = db.session.execute(text(query)).fetchone()[0]
|
||||
return full_name
|
||||
|
||||
Reference in New Issue
Block a user