Skip to content

Commit

Permalink
update default mem limit, prepend slash to avt url resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaNecron committed Aug 1, 2024
1 parent dc9c3d8 commit cbc8ccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion judge/jinja2/gravatar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}']}"
2 changes: 1 addition & 1 deletion judge/views/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbc8ccc

Please sign in to comment.