Updates the database whenever a HTTP request is made. Checks whether a challenge is finished, and if so, updates the database accordingly, and adds points to the winning user.
Added a check to block attempts if the challenge has already finished. Currently redirects them back to viewing the challenge, but maybe there's a better way to communicate that they had run out of time?
Also allows anonymous users to see all submissions for a challenge once the challenge has finished.
Updates the database whenever a HTTP request is made. Checks whether a challenge is finished, and if so, updates the database accordingly, and adds points to the winning user.
Added a check to block attempts if the challenge has already finished. Currently redirects them back to viewing the challenge, but maybe there's a better way to communicate that they had run out of time?
Also allows anonymous users to see all submissions for a challenge once the challenge has finished.