From 938afeaf90003c224e5be0cce74146c92ddf79a7 Mon Sep 17 00:00:00 2001 From: Patrick Mayr Date: Tue, 14 Jun 2022 11:40:49 +0000 Subject: [PATCH] black formatting --- fet2020/authentications/views.py | 5 ++++- fet2020/documents/etherpadlib.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fet2020/authentications/views.py b/fet2020/authentications/views.py index da6ac71f..31c7f5bf 100644 --- a/fet2020/authentications/views.py +++ b/fet2020/authentications/views.py @@ -30,7 +30,10 @@ def loginPage(request): except: return redirect("home") else: - messages.error(request, "Anmeldung nicht erfolgreich. Bitte überprüfe Benutzername und Passwort.") + messages.error( + request, + "Anmeldung nicht erfolgreich. Bitte überprüfe Benutzername und Passwort.", + ) form = LoginForm() diff --git a/fet2020/documents/etherpadlib.py b/fet2020/documents/etherpadlib.py index a4b38cb1..bc82c2b7 100644 --- a/fet2020/documents/etherpadlib.py +++ b/fet2020/documents/etherpadlib.py @@ -17,7 +17,7 @@ def __get_ep_sessionid(request): name=str(request.user), authorMapper=str(request.user) ) expires = timezone.now() + timedelta(hours=3) - + try: result = epc.createSession( groupID=str(group["groupID"]),