Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jitsi-cert-auth
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Hartig
jitsi-cert-auth
Commits
f31028aa
Project 'niepra01/ptb-latex' was moved to 'vaclab/ptb-latex'. Please update any links and bookmarks that may still have the old path.
Commit
f31028aa
authored
1 year ago
by
Jan Hartig
Browse files
Options
Downloads
Patches
Plain Diff
Dev
parent
8d552602
No related branches found
No related tags found
1 merge request
!26
Dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server.py
+2
-2
2 additions, 2 deletions
server.py
with
2 additions
and
2 deletions
server.py
+
2
−
2
View file @
f31028aa
...
...
@@ -47,7 +47,7 @@ async def unlock_room(request: Request):
if
room
.
lower
()
==
entry
[
"
room
"
].
lower
():
return
json_response
({
"
error
"
:
"
Raum nicht freischaltbar.
"
})
except
KeyError
:
except
(
KeyError
,
TypeError
)
:
room
=
get_random_room
()
# Make room name url-safe
...
...
@@ -110,7 +110,7 @@ def check_auth(request: Request) -> dict:
def
get_random_room
()
->
str
:
return
f
"
{
r
.
word
(
include_parts_of_speech
=
[
'
adjectives
'
])
}{
r
.
word
(
include_parts_of_speech
=
[
'
nouns
'
])
}
"
return
f
"
{
r
.
word
(
include_parts_of_speech
=
[
'
adjectives
'
])
.
capitalize
()
}{
r
.
word
(
include_parts_of_speech
=
[
'
nouns
'
])
.
capitalize
()
}
"
async
def
get_serial2room
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment