Skip to content

Commit

Permalink
Fix: run black
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Jan 21, 2024
1 parent 862beee commit 3418f6c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions LedenAdministratie/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,16 @@ def send_notification(self, form, recipients):
if not settings.NOTIFICATION_ENDPOINT:
return None

requests.post(settings.NOTIFICATION_ENDPOINT, json={
"title": form.cleaned_data["subject"],
"description": form.cleaned_data["description"],
"content": form.cleaned_data["body"],
"recipients": recipients
}, timeout=10)

requests.post(
settings.NOTIFICATION_ENDPOINT,
json={
"title": form.cleaned_data["subject"],
"description": form.cleaned_data["description"],
"content": form.cleaned_data["body"],
"recipients": recipients,
},
timeout=10,
)

def form_valid(self, form):
if "self" in form.cleaned_data["recipients"]:
Expand Down

0 comments on commit 3418f6c

Please sign in to comment.