You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: unsupported operand type(s) for -: 'int' and 'str'
(9 additional frame(s) were not displayed)
...
File "backend/exception_handler.py", line 50, in handle_exception
raise exc
File "rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "challenge/views.py", line 309, in post
solve = challenge.points_plugin.score(user, team, flag, solve_set.filter(correct=True))
File "plugins/points/base.py", line 29, in score
points = self.get_points(team, flag, solves.count())
File "plugins/points/decay.py", line 17, in get_points
return int(round(min_points + ((challenge.score - min_points) * (decay_constant ** max(solves - 1, 0)))))
The text was updated successfully, but these errors were encountered:
When the user submits a change to the flag metadata (for example changing the radius of a map challenge), the min_points and decay_constant fields are getting written as empty string rather than the expected behavior of them being excluded.
Sentry Issue: BACKEND-4D
The text was updated successfully, but these errors were encountered: