Sha256: 20bb0881496aef15f8381b7a270c370984c800dd34b4e73063d7af141edac650
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
class SlackSmartBot def get_shares() channel = @channels_name[@channel_id] if File.exist?("#{config.path}/shares/#{channel}.csv") "#{config.path}/shares/#{channel}.csv" t = CSV.table("#{config.path}/shares/#{channel}.csv", headers: ['share_id', 'user_team_id_deleted', 'user_deleted', 'user_team_id_created', 'user_created', 'date', 'time', 'type', 'to_channel', 'condition']) t.delete_if {|row| row[:user_deleted] != ''} @shares[channel] = t end end end
Version data entries
3 entries across 3 versions & 1 rubygems