app/repositories/sessions_repository.rb
Method fixed_active_government_sessions
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def fixed_active_government_sessions(sensor_name:, west:, east:, north:, south:)
sensor_name = ActiveRecord::Base.connection.quote(sensor_name)
sql = <<-SQL
WITH recent_sessions AS (