mirror of
https://github.com/codingCoffee/cowin-monitor.git
synced 2025-12-12 11:47:01 +00:00
feat: send alert only for 18+
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
bfd93ed277
commit
24b1dd0246
1 changed files with 4 additions and 3 deletions
1
app.py
1
app.py
|
|
@ -56,6 +56,7 @@ 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:
|
||||||
|
if center.get('min_age_limit') < AGE:
|
||||||
msg = f"""Location: {center.get('location')}
|
msg = f"""Location: {center.get('location')}
|
||||||
Available Capacity: {center.get('available_capacity')}
|
Available Capacity: {center.get('available_capacity')}
|
||||||
Available Slots: {center.get('available_slots')}
|
Available Slots: {center.get('available_slots')}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue