From: Agnibho Mondal Date: Thu, 11 Jan 2024 19:24:42 +0000 (+0530) Subject: Bugfix: vaccination edit id X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=47828b7ba929b83e0108e1e93612ba36957adb3e;p=librevax.git Bugfix: vaccination edit id --- 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
- +