(ok, center)=multicenter.read(cursor, g.mid)
if(not ok):
raise Exception(center)
+ individual=set()
count={}
for i in data:
+ individual.add(i["cid"])
try:
count[i["vaccine"]]=count[i["vaccine"]]+i["dosage"]
except KeyError:
count[i["vaccine"]]=i["dosage"]
- return render_template("report.html", data=data, count=count, center=center, date=date)
+ return render_template("report.html", data=data, count=count, individual=individual, center=center, date=date)
except Exception as e:
raise(e)
return render_template("error.html", data=e)