Closed scarroll32 closed 7 years ago
The submissions are based on a rolling 24 hour period. We would need to calculate when a slot becomes available (when the first submission has aged out).
def set_submissions_remaining
submissions_today = Submission.where("participant_id = ? and created_at >= ?", current_participant.id, Time.now - 24.hours).count
@submissions_remaining = (@challenge.daily_submissions - submissions_today)
end
https://github.com/crowdAI/crowdai/blob/master/app/controllers/submissions_controller.rb#L119-L120
Will be handled in #327 refactoring
Incorporated into #327
Onr participant writes on the opensnp challenge discussion forum that :
(edited)
This is the error returned by the crowdAI API, which the grader simply relays to the participant so I am not sure, when exactly the 5 submissions per day limit resets