Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results page is broken on fresh install #3785

Closed
frankduncan opened this issue Feb 28, 2024 · 0 comments · Fixed by #3786
Closed

Results page is broken on fresh install #3785

frankduncan opened this issue Feb 28, 2024 · 0 comments · Fixed by #3786
Labels
Type: Bug Bugs! Things that are broken :-/

Comments

@frankduncan
Copy link
Contributor

Describe the bug

When going to apply/submissions/result/ on a fresh install, get the following error:

[ERROR][django.request] Internal Server Error: /apply/submissions/result/
Traceback (most recent call last):
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/utils/decorators.py", line 46, in _wrapper
    return bound_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/utils/decorators.py", line 134, in _wrapper_view
    response = view_func(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/utils/decorators.py", line 46, in _wrapper
    return bound_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch
    return handler(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/.local/lib/python3.11/site-packages/django_filters/views.py", line 85, in get
    context = self.get_context_data(filter=self.filterset,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ots-ardc/upstream-hypha/hypha/apply/funds/views.py", line 1729, in get_context_data
    average_value = intcomma(round(submission_values.get("value__avg")))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expected behavior

See the results page

Priority

  • Medium (slowing you down)

Affected roles

  • Staff

Desktop (please complete the following information):

  • OS: Debian Linux
  • Browser: Firefox
  • Version: 122
@frankduncan frankduncan added the Type: Bug Bugs! Things that are broken :-/ label Feb 28, 2024
frjo added a commit that referenced this issue Feb 29, 2024
Fixes #3785

Add a check to see if there are any submission values.
wes-otf pushed a commit that referenced this issue May 7, 2024
Fixes #3785

Add a check to see if there are any submission values.
wes-otf pushed a commit that referenced this issue May 8, 2024
Fixes #3785

Add a check to see if there are any submission values.
Vldln pushed a commit to equalitie/hypha that referenced this issue May 28, 2024
Fixes HyphaApp#3785

Add a check to see if there are any submission values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bugs! Things that are broken :-/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant