Compare commits
No commits in common. "b6f06fdae5b22046ba17580f89d4db26e6830f5f" and "543480a4fe0b5a4e2c38f3baedbd935797113dcd" have entirely different histories.
b6f06fdae5
...
543480a4fe
2 changed files with 3 additions and 7 deletions
|
|
@ -396,11 +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
|
||||
cache_data[platform][contest.id].name = contest.name
|
||||
if contest.start_time and contest.start_time ~= vim.NIL then
|
||||
if contest.start_time then
|
||||
cache_data[platform][contest.id].start_time = contest.start_time
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -123,9 +123,7 @@ 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, start_time=start_time))
|
||||
return results
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue