Skip to content

Submissions and Participants count (version < 1.14.0)

After upgrading from Codabench <1.14, you will need to follow these steps to compute the submissions and participants counts on the competition pages. See this for more information

1. Update counts for all competitions

Bash into django console

Text Only
docker compose exec django ./manage.py shell_plus

Import and call the function

Python
from competitions.submission_participant_counts import compute_submissions_participants_counts
compute_submissions_participants_counts()

2. Feature some competitions in home page

There are two ways to do it:

  1. Use Django admin -> click the competition -> scroll down to is featured field -> Check/Uncheck it
  2. Use competition ID in the django bash to feature / unfeature a competition
    Bash
    docker compose exec django ./manage.py shell_plus
    
    Python
    comp = Competition.objects.get(id=<ID>)  # replace <ID> with competition id
    comp.is_featured = True  # set to False if you want to unfeature a competition
    comp.save()