Add method to update contestants through admin UI
This commit is contained in:
@@ -68,7 +68,11 @@ class Completion < ApplicationRecord
|
||||
self.time_seconds = arr[0].to_i
|
||||
end
|
||||
else
|
||||
self.time_seconds = self.contest.duration_seconds
|
||||
if self.contest.duration_seconds.present?
|
||||
self.time_seconds = self.contest.duration_seconds
|
||||
else
|
||||
self.time_seconds = 2 * 3600
|
||||
end
|
||||
self.display_time_from_start = display_time(self.time_seconds)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user