Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
42
Issues
42
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
209867b3
Verified
Commit
209867b3
authored
Nov 04, 2019
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
black: makes new version happy
parent
59511d25
Pipeline
#2131
passed with stage
in 32 minutes and 52 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
14 deletions
+6
-14
core/utils.py
core/utils.py
+2
-6
counter/views.py
counter/views.py
+2
-2
launderette/views.py
launderette/views.py
+1
-3
sith/settings.py
sith/settings.py
+1
-3
No files found.
core/utils.py
View file @
209867b3
...
...
@@ -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
),
""
)
...
...
counter/views.py
View file @
209867b3
...
...
@@ -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
):
...
...
launderette/views.py
View file @
209867b3
...
...
@@ -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
()
...
...
sith/settings.py
View file @
209867b3
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment