Browse Source

fix: Session exported via iCAL URL is showing tentative even though player confirmed participation

Refs: #52
develop
Martin Bober 2 weeks ago
parent
commit
c6af3f4ab8
  1. 4
      app/models/player.rb

4
app/models/player.rb

@ -140,9 +140,9 @@ class Player < ApplicationRecord
e.url = Rails.application.routes.url_helpers.campaign_forum_url campaign_session.campaign, campaign_session.forum_thread
e.uid = Rails.application.routes.url_helpers.campaign_session_url campaign_session.campaign, campaign_session
e.sequence = DateTime.now.strftime('%y%W%u%H%M').to_i
if campaign_session.cancelled or participant.status == :not_attending
if campaign_session.cancelled or participant.status == 'not_attending'
e.status = 'CANCELLED'
elsif participant.status == :attending
elsif participant.status == 'attending'
e.status = 'CONFIRMED'
else
e.status = 'TENTATIVE'

Loading…
Cancel
Save