Spaces:
Sleeping
Sleeping
JairoDanielMT
commited on
Commit
•
b4a1d6c
1
Parent(s):
28a462a
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ def get_db_connection():
|
|
48 |
def execute_query(sql_query: SQLQuery):
|
49 |
conn = get_db_connection()
|
50 |
try:
|
51 |
-
# Limpiar la consulta para eliminar '\nObservation'
|
52 |
-
cleaned_query = sql_query.query.replace("\nObservation", "")
|
53 |
print("Solicitud POST completa:", sql_query.json())
|
54 |
print("Consulta recibida en el servidor:", cleaned_query)
|
55 |
|
|
|
48 |
def execute_query(sql_query: SQLQuery):
|
49 |
conn = get_db_connection()
|
50 |
try:
|
51 |
+
# Limpiar la consulta para eliminar '\nObservation' y reemplazar comillas escapadas
|
52 |
+
cleaned_query = sql_query.query.replace("\nObservation", "").replace("\\'", "'")
|
53 |
print("Solicitud POST completa:", sql_query.json())
|
54 |
print("Consulta recibida en el servidor:", cleaned_query)
|
55 |
|