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

        Szymon Acedański made changes -
        Field Original Value New Value
        Labels tag1
        Szymon Acedański made changes -
        Assignee Franciszek Hnatów [ fhnatow1 ]
        Szymon Acedański made changes -
        TAG Developer Franciszek Hnatów [ fhnatow1 ]
        Franciszek Hnatów made changes -
        Status New [ 10000 ] Resolved [ 5 ]
        Assignee Franciszek Hnatów [ fhnatow1 ] Szymon Acedański [ accek ]
        Resolution Fixed [ 1 ]
        Szymon Acedański made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          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: