Skip to content

Commit

Permalink
fix: fix flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
thangved committed Aug 30, 2023
1 parent 9532cb0 commit 71b3f93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion judge/admin/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def get_formset(self, request, obj=None, **kwargs):

def formfield_for_dbfield(self, db_field, **kwargs):
submission = kwargs.pop('obj', None)
label = None
if submission:
if db_field.name == 'participation':
kwargs['queryset'] = ContestParticipation.objects.filter(user=submission.user,
Expand Down
2 changes: 1 addition & 1 deletion judge/jinja2/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def link_user(user):
f'<a href="{escape(reverse("user_page", args=[user.username]))}"'
f' style="display: inline-flex; align-items: center; gap: 5px">'
f'<img class="ui avatar image" '
f'style="border-radius: 200px !important; width: 24px; height: 24px; margin: 0; margin-right: 5px;"'
f'style="border-radius: 200px !important; width: 24px; height: 24px; margin: 0 5px 0 0;"'
f'src="{gravatar(profile.user, 64)}" />'
f'<span>{escape(profile.display_name)}</span></a>{display_badge_img}</div>')

Expand Down

0 comments on commit 71b3f93

Please sign in to comment.