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

        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 1
        https://gerrit.sio2project.mimuw.edu.pl/3356

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

        Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3356 SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~Ib468adfeb0fa127e96b75746f831d7f962f769d2, patchset 1
        https://gerrit.sio2project.mimuw.edu.pl/3358

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

        Change-Id: Ib468adfeb0fa127e96b75746f831d7f962f769d2
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~Ib468adfeb0fa127e96b75746f831d7f962f769d2, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3358 SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None Change-Id: Ib468adfeb0fa127e96b75746f831d7f962f769d2
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 2
        https://gerrit.sio2project.mimuw.edu.pl/3356

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

        Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 2 https://gerrit.sio2project.mimuw.edu.pl/3356 SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 3
        https://gerrit.sio2project.mimuw.edu.pl/3356

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

        Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 3 https://gerrit.sio2project.mimuw.edu.pl/3356 SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 4
        https://gerrit.sio2project.mimuw.edu.pl/3356

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

        Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 4 https://gerrit.sio2project.mimuw.edu.pl/3356 SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 5
        https://gerrit.sio2project.mimuw.edu.pl/3356

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

        Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I6527d60996e0cd8692d219c4753f816ce3a82133, patchset 5 https://gerrit.sio2project.mimuw.edu.pl/3356 SIO-2276 Viewing problem list fails with HTTP 500 when round end time is None Change-Id: I6527d60996e0cd8692d219c4753f816ce3a82133

          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: