remove crown stuff

This commit is contained in:
stvnrlly
2022-10-17 20:16:39 +00:00
parent 59732ce137
commit 3fff0fdd84
22 changed files with 168 additions and 195 deletions

View File

@@ -8,10 +8,9 @@ post_create_organisation_schema = {
"properties": {
"name": {"type": "string"},
"active": {"type": ["boolean", "null"]},
"crown": {"type": "boolean"},
"organisation_type": {"enum": ORGANISATION_TYPES},
},
"required": ["name", "crown", "organisation_type"]
"required": ["name", "organisation_type"]
}
post_update_organisation_schema = {
@@ -21,7 +20,6 @@ post_update_organisation_schema = {
"properties": {
"name": {"type": ["string", "null"]},
"active": {"type": ["boolean", "null"]},
"crown": {"type": ["boolean", "null"]},
"organisation_type": {"enum": ORGANISATION_TYPES},
},
"required": []

View File

@@ -211,6 +211,7 @@ def send_notifications_on_mou_signed(organisation_id):
send_notification_to_queue(saved_notification, research_mode=False, queue=QueueNames.NOTIFY)
personalisation = {
# TODO: needs an approach detached from crown binary
'mou_link': '{}/agreement/{}.pdf'.format(
current_app.config['ADMIN_BASE_URL'],
'crown' if organisation.crown else 'non-crown'