mirror of
https://github.com/codingCoffee/cowin-monitor.git
synced 2025-12-12 11:47:01 +00:00
fix: add age limit details
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
613c79a79c
commit
e6e12594d2
1 changed files with 7 additions and 1 deletions
8
app.py
8
app.py
|
|
@ -47,6 +47,7 @@ def main():
|
||||||
'available_capacity': session.get('available_capacity'),
|
'available_capacity': session.get('available_capacity'),
|
||||||
'available_slots': ', '.join(session.get('slots')),
|
'available_slots': ', '.join(session.get('slots')),
|
||||||
'vaccine': session.get('vaccine'),
|
'vaccine': session.get('vaccine'),
|
||||||
|
'min_age_limit': session.get('min_age_limit'),
|
||||||
'fee_type': center.get('fee_type'),
|
'fee_type': center.get('fee_type'),
|
||||||
}
|
}
|
||||||
available_center_list.append(curr)
|
available_center_list.append(curr)
|
||||||
|
|
@ -55,7 +56,12 @@ def main():
|
||||||
message_body = ''
|
message_body = ''
|
||||||
if available_center_list:
|
if available_center_list:
|
||||||
for center in available_center_list:
|
for center in available_center_list:
|
||||||
msg = f"Location: {center.get('location')}\nAvailable Capacity: {center.get('available_capacity')}\nAvailable Slots: {center.get('available_slots')}\nVaccine: {center.get('vaccine')}\nFee: {center.get('fee_type')}\n\n"
|
msg = f"""Location: {center.get('location')}
|
||||||
|
Available Capacity: {center.get('available_capacity')}
|
||||||
|
Available Slots: {center.get('available_slots')}
|
||||||
|
Vaccine: {center.get('vaccine')}
|
||||||
|
Age Limit: {center.get('min_age_limit')}
|
||||||
|
Fee: {center.get('fee_type')}\n\n"""
|
||||||
message_body += msg
|
message_body += msg
|
||||||
break # to prevent too long messages
|
break # to prevent too long messages
|
||||||
msg = message_header + message_body + message_footer
|
msg = message_header + message_body + message_footer
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue