Skip to content
Permalink
Browse files
ほんとにtransいる?
  • Loading branch information
nna774 committed Sep 16, 2018
1 parent fca43d7 commit a3f16278fab1d59662a324a650b0a8d9e801549d
Showing with 0 additions and 3 deletions.
  1. +0 −3 app/webapp/ruby/lib/torb/web.rb
@@ -56,7 +56,6 @@ def db
def get_events(where = nil)
where ||= ->(e) { e['public_fg'] }

db.query('BEGIN')
begin
events_raw = db.query('SELECT * FROM events ORDER BY id ASC').select(&where)
sheets = db.query('SELECT * FROM sheets ORDER BY `rank`, num').to_a
@@ -75,11 +74,9 @@ def get_events(where = nil)
event && event['sheets'].each { |sheet| sheet.delete('detail') }
event
end
db.query('COMMIT')
rescue => e
p e
puts e.backtrace.join("\n")
db.query('ROLLBACK')
end

events

0 comments on commit a3f1627

Please sign in to comment.