Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Lynchburg Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Lynchburg
Lynchburg Server
Commits
8e68dec3
Commit
8e68dec3
authored
4 years ago
by
Nils G.
Browse files
Options
Downloads
Patches
Plain Diff
Remove TODO and prevent creating rooms without specifying a game name
parent
fcc46c29
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controllers/room.py
+1
-2
1 addition, 2 deletions
controllers/room.py
with
1 addition
and
2 deletions
controllers/room.py
+
1
−
2
View file @
8e68dec3
...
...
@@ -13,9 +13,8 @@ def create():
if
not
JSON_CONTAINS
(
parameters
,
[(
'
player_max
'
,
int
)]):
return
(
FAIL
(
CODE_MISSING
))
#TODO: Do not allow to not specify a game_name
if
not
JSON_CONTAINS
(
parameters
,
[(
'
game_name
'
,
str
)]):
parameters
[
'
game_name
'
]
=
"
Lynchburg
"
return
(
FAIL
(
CODE_MISSING
))
player_max
=
parameters
[
'
player_max
'
]
game_name
=
parameters
[
'
game_name
'
]
...
...
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