</div>
</form>
<table class="table">
- <tr><td>{{config["TITLE"]}} / {{center["center"]}}</td><td>Vaccination Report: {{toDate}} to {{fromDate}}</td></tr>
+ <tr><td>{{config["TITLE"]}} / {{center["center"]}}</td><td>Vaccination Report: {{fromDate}} to {{toDate}}</td></tr>
</table>
<table class="table table-bordered">
{% for i in data %}
def list_by_date(cursor, fromDate, toDate):
try:
+ fromDate=fromDate+"T00:00:00"
+ toDate=toDate+"T23:59:59"
result=cursor.execute("SELECT * FROM vaccination LEFT JOIN inventory ON vaccination.iid=inventory.iid LEFT JOIN patients ON vaccination.pid=patients.pid WHERE vaccination.date BETWEEN ? AND ? ORDER BY vaccination.date, vaccination.iid", (fromDate, toDate))
if(cursor.rowcount==0):
return (False, "Record not found.")