(organisation_id: int)
| 52 | |
| 53 | @register_task_handler() |
| 54 | def send_org_over_limit_alert(organisation_id: int) -> None: |
| 55 | organisation = Organisation.objects.get(id=organisation_id) |
| 56 | |
| 57 | subscription_metadata = organisation.subscription.get_subscription_metadata() |
| 58 | FFAdminUser.send_alert_to_admin_users( # type: ignore[no-untyped-call] |
| 59 | subject=ALERT_EMAIL_SUBJECT, |
| 60 | message=ALERT_EMAIL_MESSAGE |
| 61 | % ( |
| 62 | str(organisation.name), |
| 63 | organisation.num_seats, |
| 64 | subscription_metadata.seats, |
| 65 | organisation.subscription.plan, |
| 66 | ), |
| 67 | ) |
| 68 | |
| 69 | |
| 70 | @register_task_handler() |
searching dependent graphs…