Skip to content

Commit

Permalink
gh fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Apr 18, 2024
1 parent e7ec12d commit 9c95a3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/prescription_agg_service.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from flask_api import status
from sqlalchemy import desc
from sqlalchemy import desc, text
from datetime import date, timedelta

from models.main import db
Expand Down Expand Up @@ -184,7 +184,8 @@ def create_agg_prescription_by_date(schema, admission_number, p_date, is_cpoe):


def _log_processed_date(id_prescription_array, schema):
query = f"""
query = text(
f"""
insert into {schema}.presmed_audit (
tp_audit, fkpresmed, created_at, created_by
)
Expand All @@ -198,6 +199,7 @@ def _log_processed_date(id_prescription_array, schema):
where
fkprescricao = any(:prescriptionArray)
"""
)

db.session.execute(
query,
Expand Down

0 comments on commit 9c95a3d

Please sign in to comment.