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

Viewing histogram for user with no submission should be covered in tests

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Trivial Trivial
    • Resolution: Obsolete
    • Affects Version/s: Current Version
    • Fix Version/s: Current Version
    • Component/s: OIOIOI
    • Labels:
      None

      Issue Links

        Activity

        Hide
        Marek Bardoński added a comment -
        Tego mi nie wykryło :)

          File "/home/oioioi/sio2/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
            response = callback(request, *callback_args, **callback_kwargs)

          File "/home/oioioi/sio2/oioioi/oioioi/base/permissions.py", line 126, in _wrapped_view
            return view_func(request, *args, **kwargs)

          File "/home/oioioi/sio2/oioioi/oioioi/statistics/views.py", line 67, in statistics_view
            plot_kind, object)

          File "/home/oioioi/sio2/oioioi/oioioi/statistics/controllers.py", line 199, in statistics_data
            result = plot_function(object)

          File "/home/oioioi/sio2/oioioi/oioioi/statistics/plotfunctions.py", line 84, in points_histogram_problem
            max_score = results[0].submission_report.score_report.max_score

        AttributeError: 'NoneType' object has no attribute 'score_report'
        Show
        Marek Bardoński added a comment - Tego mi nie wykryło :)   File "/home/oioioi/sio2/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response     response = callback(request, *callback_args, **callback_kwargs)   File "/home/oioioi/sio2/oioioi/oioioi/base/permissions.py", line 126, in _wrapped_view     return view_func(request, *args, **kwargs)   File "/home/oioioi/sio2/oioioi/oioioi/statistics/views.py", line 67, in statistics_view     plot_kind, object)   File "/home/oioioi/sio2/oioioi/oioioi/statistics/controllers.py", line 199, in statistics_data     result = plot_function(object)   File "/home/oioioi/sio2/oioioi/oioioi/statistics/plotfunctions.py", line 84, in points_histogram_problem     max_score = results[0].submission_report.score_report.max_score AttributeError: 'NoneType' object has no attribute 'score_report'
        Hide
        Szymon Acedański added a comment -
        This issue has been automatically closed as Obsolete due to no activity for 365 days.

        Feel free to reopen it or create a new one if it's still relevant.
        Show
        Szymon Acedański added a comment - This issue has been automatically closed as Obsolete due to no activity for 365 days. Feel free to reopen it or create a new one if it's still relevant.

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Marek Bardoński
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: