Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
39c44ccd
Commit
39c44ccd
authored
Sep 24, 2018
by
BAIRE Anthony
Browse files
fix memory exhaustion on webapp creation
was introduced by
88a62c53
parent
60943222
Pipeline
#40773
failed with stage
in 2 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
django/allgo/main/forms.py
View file @
39c44ccd
...
...
@@ -193,7 +193,7 @@ class WebappForm(forms.ModelForm):
# - value is converted into bytes
return
(
self
.
cleaned_data
[
"memory_limit_mb"
]
if
request
.
user
.
is_superuser
else
config
.
env
.
ALLGO_WEBAPP_DEFAULT_MEMORY_LIMIT_MB
else
int
(
config
.
env
.
ALLGO_WEBAPP_DEFAULT_MEMORY_LIMIT_MB
)
)
*
1024
**
2
class
Meta
:
...
...
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