ci: format

This commit is contained in:
Barrett Ruth 2026-03-06 13:22:00 -05:00
parent 5e4d3d1b61
commit b6f06fdae5
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 6 additions and 2 deletions

View file

@ -396,7 +396,9 @@ function M.set_contest_summaries(platform, contests)
cache_data[platform] = cache_data[platform] or {}
for _, contest in ipairs(contests) do
cache_data[platform][contest.id] = cache_data[platform][contest.id] or {}
cache_data[platform][contest.id].display_name = (contest.display_name ~= vim.NIL and contest.display_name) or contest.name
cache_data[platform][contest.id].display_name = (
contest.display_name ~= vim.NIL and contest.display_name
) or contest.name
cache_data[platform][contest.id].name = contest.name
if contest.start_time and contest.start_time ~= vim.NIL then
cache_data[platform][contest.id].start_time = contest.start_time

View file

@ -123,7 +123,9 @@ def _parse_contests_page(html: str) -> list[ContestSummary]:
start_time = int(dt.timestamp())
except Exception:
pass
results.append(ContestSummary(id=cid, name=name, display_name=name, start_time=start_time))
results.append(
ContestSummary(id=cid, name=name, display_name=name, start_time=start_time)
)
return results