|
|
@ -1,6 +1,6 @@
|
|
|
|
json.extract! @competition, :id, :name, :sub_title, :identifier, :bonus, :mode
|
|
|
|
json.extract! @competition, :id, :name, :sub_title, :identifier, :bonus, :mode
|
|
|
|
json.visits_count @competition.visits
|
|
|
|
json.visits_count @competition.visits
|
|
|
|
member_count = @competition.team_members.count
|
|
|
|
member_count = @competition.team_member_count
|
|
|
|
json.member_count member_count.zero? ? 268 : member_count
|
|
|
|
json.member_count member_count.zero? ? 268 : member_count
|
|
|
|
|
|
|
|
|
|
|
|
json.start_time @competition.start_time&.strftime("%Y-%m-%d")
|
|
|
|
json.start_time @competition.start_time&.strftime("%Y-%m-%d")
|
|
|
|