From 47828b7ba929b83e0108e1e93612ba36957adb3e Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Fri, 12 Jan 2024 00:54:42 +0530 Subject: [PATCH] Bugfix: vaccination edit id --- librevax.py | 2 +- templates/patient-view.html | 2 +- templates/vaccination-edit.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/librevax.py b/librevax.py index 8444187..ab1420f 100644 --- a/librevax.py +++ b/librevax.py @@ -460,7 +460,7 @@ def vaccination_view(action, id=None): raise Exception("Invalid parameter") elif(action=="edit"): if(id is not None): - (ok, data)=vaccination.read(cursor, g.mid) + (ok, data)=vaccination.read(cursor, id) if(not ok): raise Exception(data) (ok, inv)=inventory.list(cursor, g.mid) diff --git a/templates/patient-view.html b/templates/patient-view.html index f15aa87..dd0f48b 100644 --- a/templates/patient-view.html +++ b/templates/patient-view.html @@ -37,7 +37,7 @@ You should have received a copy of the GNU General Public License along with Lib {% for v in vaccination %} - + {% endfor %}
VaccineDoseRouteBatchDOEDateConsultantVaccinator
{{v["vaccine"]}}{{v["dose"]}}{{v["route"]}}{{v["batch"]}}{{v["doe"]}}{{v["date"]|format_date}}{{v["consultant"]}}{{v["vaccinator"]}}View
{{v["vaccine"]}}{{v["dose"]}}{% if v["dosage"]>1 %}×{{v["dosage"]}}{% endif %}{{v["route"]}}{{v["batch"]}}{{v["doe"]}}{{v["date"]|format_date}}{{v["consultant"]}}{{v["vaccinator"]}}View
diff --git a/templates/vaccination-edit.html b/templates/vaccination-edit.html index e906de9..f591912 100644 --- a/templates/vaccination-edit.html +++ b/templates/vaccination-edit.html @@ -34,7 +34,7 @@ You should have received a copy of the GNU General Public License along with Lib
- +
-- 2.39.5