From 209867b3a830e3646ca66e53e7655a4e1dafd9f7 Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Mon, 4 Nov 2019 13:46:09 +0100 Subject: [PATCH] black: makes new version happy --- core/utils.py | 8 ++------ counter/views.py | 4 ++-- launderette/views.py | 4 +--- sith/settings.py | 4 +--- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/core/utils.py b/core/utils.py index 6267802c..bb45d726 100644 --- a/core/utils.py +++ b/core/utils.py @@ -189,9 +189,7 @@ def doku_to_markdown(text): except: new_text.append("> " * quote_level) line = line.replace(quote.group(0), "") - final_quote_level = ( - quote_level - ) # Store quote_level to use at the end, since it will be modified during quit iteration + final_quote_level = quote_level # Store quote_level to use at the end, since it will be modified during quit iteration final_newline = False for quote in quit: # Quit quotes (support multiple at a time) line = line.replace(quote.group(0), "") @@ -240,9 +238,7 @@ def bbcode_to_markdown(text): except: new_text.append("> " * quote_level) line = line.replace(quote.group(0), "") - final_quote_level = ( - quote_level - ) # Store quote_level to use at the end, since it will be modified during quit iteration + final_quote_level = quote_level # Store quote_level to use at the end, since it will be modified during quit iteration final_newline = False for quote in quit: # Quit quotes (support multiple at a time) line = line.replace(quote.group(0), "") diff --git a/counter/views.py b/counter/views.py index 8b20e036..2ce9480a 100644 --- a/counter/views.py +++ b/counter/views.py @@ -278,8 +278,8 @@ class CounterMain( template_name = "counter/counter_main.jinja" pk_url_kwarg = "counter_id" form_class = ( - GetUserForm - ) # Form to enter a client code and get the corresponding user id + GetUserForm # Form to enter a client code and get the corresponding user id + ) current_tab = "counter" def post(self, request, *args, **kwargs): diff --git a/launderette/views.py b/launderette/views.py index 5c7e85a8..7b5f5ad8 100644 --- a/launderette/views.py +++ b/launderette/views.py @@ -345,9 +345,7 @@ class LaunderetteMainClickView(CanEditMixin, BaseFormView, DetailView): model = Launderette pk_url_kwarg = "launderette_id" template_name = "counter/counter_main.jinja" - form_class = ( - GetLaunderetteUserForm - ) # Form to enter a client code and get the corresponding user id + form_class = GetLaunderetteUserForm # Form to enter a client code and get the corresponding user id def get(self, request, *args, **kwargs): self.object = self.get_object() diff --git a/sith/settings.py b/sith/settings.py index 75fd63e8..19f30ca8 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -279,9 +279,7 @@ SITH_NAME = "Sith website" SITH_TWITTER = "@ae_utbm" # AE configuration -SITH_MAIN_CLUB_ID = ( - 1 -) # TODO: keep only that first setting, with the ID, and do the same for the other clubs +SITH_MAIN_CLUB_ID = 1 # TODO: keep only that first setting, with the ID, and do the same for the other clubs SITH_MAIN_CLUB = { "name": "AE", "unix_name": "ae",