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

Viewing problem list fails with HTTP 500 when round end time is None

    Details

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

      Description

      https://sentry.io/organizations/the-sio2-project/issues/1210384154/?referrer=jira_plugin

      {code}
      TypeError: can't compare datetime.datetime to NoneType
        File "oioioi/contests/views.py", line 106, in problems_list_view
          ], key=lambda p: (p[2].get_start(), p[2].get_end(), p[0].round.name,
        File "oioioi/base/permissions.py", line 126, in _wrapped_view
          return view_func(request, *args, **kwargs)
      ...
      (1 additional frame(s) were not displayed)

      TypeError: can't compare datetime.datetime to NoneType
      {code}

        Activity

        Connect your code to JIRA

        Link every code change to JIRA just by adding an issue keys in commit messages. Bridge the gap back to your source and know which changes fixed which JIRA issues.

        Git & Mercurial in the cloud

        Collaborate across unlimited private code repositories.

        Git behind the firewall

        Manage and collaborate on Git repositories behind a firewall.

        Browse and search code

        Browse, search, and track source code repositories.

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Sentry
            TAG Developer:
            Franciszek Hnatów
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: