From 123e9d3338975af0e57b15179437c81ef51c736b Mon Sep 17 00:00:00 2001 From: Abdelkouddous LHACHIMI Date: Wed, 6 May 2026 05:22:44 +0100 Subject: [PATCH] Rollback ignore unlinked answers --- eb_dashboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eb_dashboard.py b/eb_dashboard.py index 88a6993..cf03856 100644 --- a/eb_dashboard.py +++ b/eb_dashboard.py @@ -1238,9 +1238,9 @@ def get_all_questionnaires_by_patient(patient_id, record_data): # patient_id, the questionnaire is considered unlinked → clear answers # to prevent use of orphaned data. # (disable: comment out the block below) - answers_patient = answers.get("subject") if isinstance(answers, dict) else None - if not answers_patient or answers_patient != patient_id: - answers = {} + #answers_patient = answers.get("subject") if isinstance(answers, dict) else None + #if not answers_patient or answers_patient != patient_id: + # answers = {} # ──────────────────────────────────────────────────────────────────────── if q_id: