Skip to content
Snippets Groups Projects
Unverified Commit 3092e1ee authored by Felix Eckhofer's avatar Felix Eckhofer :man_dancing:
Browse files

Remove some unnecessary code

parent c7b773f6
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,6 @@ class AssignmentsController < ApplicationController
if @assignment.save
Rails.logger.debug("Saved assignment #{@assignment.inspect}")
@session = Session.find_by(ref_id: params[:session_ref_id])
Turbo::StreamsChannel.broadcast_replace_to(
@session.conference,
target: helpers.dom_id(@session),
......@@ -54,7 +53,6 @@ class AssignmentsController < ApplicationController
@session = @assignment.session
if @assignment&.destroy
@session = @assignment.session
Rails.logger.debug("destroyed assignment")
Turbo::StreamsChannel.broadcast_replace_later_to(
@session.conference,
......
......@@ -23,7 +23,6 @@ module Pretalx
end
schedule['schedule']['conference']['days'].each do |day_data|
day_data['rooms'].each do |stage_name, stage_data|
print stage_name + "\n=====================\n"
stage = stages[stage_name]
stage_data.each do |session_data|
Session.find_or_initialize_by(conference:, ref_id: session_data['guid']).tap do |session|
......
......@@ -39,8 +39,6 @@ class Assignment < ApplicationRecord
end
end
private
def notify_assignment_created
ActiveSupport::Notifications.instrument("assignment.created", record: self)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment