KamandPrompt/CodeManiacs

Disallow creating contests with duplicate contests_code

Opened this issue · 6 comments

Implement a check for the duplication of contest code before creating a new contest.
localhost/admin/new-contest

image

Here two contests with same code FRST has been created which should not be.
image

Can I work on this issue?

Can I take this up now?

This seems resolved already. In ./controls/admin.js line no 152, flag_contest variable is being used to check whether a contest with the same code already exists or not.

@InfiniteVerma @shrirangpdeshmukh
As I can see, when you create a contest with an already existing code, it does not create a new contest, but also doesn't show any error. So maybe we could add an alert here which you ask the user to choose a different contest code as this one is already taken.

Alright.

I have created a PR addressing this issue