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

unsupported operand type(s) for -: 'int' and 'NoneType' in activities/models.py #864

Closed
supertom01 opened this issue May 27, 2024 · 1 comment · Fixed by #865 or #866
Closed

unsupported operand type(s) for -: 'int' and 'NoneType' in activities/models.py #864

supertom01 opened this issue May 27, 2024 · 1 comment · Fixed by #865 or #866
Assignees
Labels
back-end These are issues related to our Django back-end bug Undesired and unintended behaviour in the website easy-to-fix These issues are easy to fix and recommended for newer members.

Comments

@supertom01
Copy link
Member

In some edge-case one might get an operand exception if the aggregated sum of enrolled people is undefined, which gives the None value back. Since the it is directly used in a subtraction, django gives a 500 server error.

@supertom01 supertom01 added bug Undesired and unintended behaviour in the website back-end These are issues related to our Django back-end easy-to-fix These issues are easy to fix and recommended for newer members. labels May 27, 2024
@supertom01 supertom01 self-assigned this May 27, 2024
@supertom01 supertom01 moved this from Backlog to In progress in WWW - Sprint board May 27, 2024
@supertom01 supertom01 linked a pull request May 27, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In progress to Done in WWW - Sprint board May 27, 2024
@Kurocon
Copy link
Member

Kurocon commented May 27, 2024

Related to #861

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end These are issues related to our Django back-end bug Undesired and unintended behaviour in the website easy-to-fix These issues are easy to fix and recommended for newer members.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants