Skip to content

Commit

Permalink
Merge pull request #575 from znick/fix_flake
Browse files Browse the repository at this point in the history
Fix flake
  • Loading branch information
znick authored Dec 13, 2023
2 parents b033956 + 9d66410 commit e53ae9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anytask/anycontest/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def get_contest_info(contest_id, lang=None):
json_str = u'{{"ru": "{0}", "en": "{1}"}}'
for problem in contest_info['problems']:
problem_en = next(item for item in contest_info_en['problems']
if item['problemId'] == problem['problemId'])
if item['problemId'] == problem['problemId'])
problem['problemTitle'] = json_str.format(
process_task_text(problem['problemTitle']),
process_task_text(problem_en['problemTitle'])
Expand Down
2 changes: 1 addition & 1 deletion anytask/tasks/templatetags/sanitize_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def sanitize_html(value):
if tag.name not in valid_tags:
tag.hidden = True
tag.attrs = dict((attr, val) for attr, val in tag.attrs
if attr in valid_attrs)
if attr in valid_attrs)
return '<p>' + soup.renderContents().decode('utf8').replace('javascript:', '').replace("\n", '</p><p>') + '</p>'
return soup.renderContents().decode('utf8')

Expand Down

0 comments on commit e53ae9d

Please sign in to comment.