elimine los logs algunso logs de debug
This commit is contained in:
@@ -1090,14 +1090,6 @@ def create_answer(
|
|||||||
db.commit()
|
db.commit()
|
||||||
db.refresh(existing_answer)
|
db.refresh(existing_answer)
|
||||||
|
|
||||||
# Enviar notificación si la pregunta lo requiere Y hay un valor real
|
|
||||||
print(f"\n=== DEBUG NOTIFICACIÓN (UPDATE) ===")
|
|
||||||
print(f"Pregunta ID: {question.id}")
|
|
||||||
print(f"Texto: {question.text}")
|
|
||||||
print(f"send_notification: {question.send_notification}")
|
|
||||||
print(f"answer_value: '{answer.answer_value}'")
|
|
||||||
print(f"Tiene valor: {bool(answer.answer_value)}")
|
|
||||||
print(f"===================================\n")
|
|
||||||
|
|
||||||
# Solo enviar si tiene valor real (no vacío ni None)
|
# Solo enviar si tiene valor real (no vacío ni None)
|
||||||
if question.send_notification and answer.answer_value:
|
if question.send_notification and answer.answer_value:
|
||||||
|
|||||||
Reference in New Issue
Block a user