The SIO2 project
  1. The SIO2 project
  2. SIO-2417

Adding a problem which has model solution in language not available in contest controller crashes site

    Details

    • Type: Bug Bug
    • Status: New New
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:
      None

      Description

      Server gets assertion error when trying to retrieve compiler for the submission -- which doesn't exist, because contest controller overrides general compiler names.

      Create contest controller with specified languages -- e.g. add
      def get_allowed_language(self):
            return ['C']
      to oioioi/oi/controller.py
      Create a public task (you can use Sumżyce) with py solution.
      Add to contest. Try adding to round (the site crashes just after clicking save) from basic problem form view. Voila.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Alicja Kluczek
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: