Commit 39c44ccd authored by BAIRE Anthony's avatar 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
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment