diff --git a/judge/jinja2/gravatar.py b/judge/jinja2/gravatar.py index 932e691f7..1cea15cfd 100644 --- a/judge/jinja2/gravatar.py +++ b/judge/jinja2/gravatar.py @@ -31,4 +31,4 @@ def gravatar(email, size=80, default=None): gravatar_url += urlencode(args) return gravatar_url else: - return f"avatar{Profile.objects.get(id=user_id).avt_url.thumbnail[f'{size}x{size}']}" + return f"/avatar{Profile.objects.get(id=user_id).avt_url.thumbnail[f'{size}x{size}']}" diff --git a/judge/views/problem.py b/judge/views/problem.py index 4d658723c..599449e51 100755 --- a/judge/views/problem.py +++ b/judge/views/problem.py @@ -820,7 +820,7 @@ def get_initial(self): initial = super(ProblemCreate, self).get_initial() initial = initial.copy() initial['description'] = misc_config(self.request)['misc_config']['description_example'] - initial['memory_limit'] = 262144 # 256 MB + initial['memory_limit'] = 1048576 # 1GB initial['partial'] = True try: initial['group'] = ProblemGroup.objects.get(name='Uncategorized').pk