Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,6 +48,9 @@ def get_db_connection():
|
|
48 |
def execute_query(sql_query: SQLQuery):
|
49 |
conn = get_db_connection()
|
50 |
try:
|
|
|
|
|
|
|
51 |
cursor = conn.cursor()
|
52 |
cursor.execute(sql_query.query)
|
53 |
conn.commit()
|
|
|
48 |
def execute_query(sql_query: SQLQuery):
|
49 |
conn = get_db_connection()
|
50 |
try:
|
51 |
+
print("Solicitud POST completa:", sql_query.json())
|
52 |
+
print("Consulta recibida en el servidor:", sql_query.query)
|
53 |
+
|
54 |
cursor = conn.cursor()
|
55 |
cursor.execute(sql_query.query)
|
56 |
conn.commit()
|