cheran-senthil / cheran-senthil/TLE

;ranklist doesn't support multiple entries for one user in same contest

Open
#290 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
337
Forks
234
PR merge metrics
No merged PRs in 30d

Description

For example: `;ranklist 652 amnesiac_dusk` gives the rank list position [as follows](
https://discordapp.com/channels/555883512952258563/563101381674926082/693867454685773966).

While it can be seen there is another virtual contest entry for the same user [which can be seen here](https://discordapp.com/channels/555883512952258563/563101381674926082/693866674767527956).

This may be because standings_by_id are stored as a dictionary (one to one) between standings and IDs.
Is it a good idea to store a list for each handle? I thought this was a relatively big change, so I raised an issue first.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the `;ranklist` command for contest 652 and inspect how `standings_by_id` maps handles to standings. Reproduce the case with `amnesiac_dusk`, then verify that the rank list includes both virtual contest entries for the same user.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.