remove db timeouts for mod report

This commit is contained in:
albert
2013-02-17 01:03:28 -05:00
parent 74c0cee5ee
commit 3d9f5e20c6

View File

@@ -9,44 +9,64 @@ module Moderator
end end
def artists def artists
ActiveRecord::Base.without_timeout do
Queries::Artist.all(min_date, max_level) Queries::Artist.all(min_date, max_level)
end end
end
def comments def comments
ActiveRecord::Base.without_timeout do
Queries::Comment.all(min_date, max_level) Queries::Comment.all(min_date, max_level)
end end
end
def mod_actions def mod_actions
ActiveRecord::Base.without_timeout do
Queries::ModAction.all Queries::ModAction.all
end end
end
def notes def notes
ActiveRecord::Base.without_timeout do
Queries::Note.all(min_date, max_level) Queries::Note.all(min_date, max_level)
end end
end
def appeals def appeals
ActiveRecord::Base.without_timeout do
Queries::PostAppeal.all(min_date) Queries::PostAppeal.all(min_date)
end end
end
def flags def flags
ActiveRecord::Base.without_timeout do
Queries::PostFlag.all(min_date) Queries::PostFlag.all(min_date)
end end
end
def tags def tags
ActiveRecord::Base.without_timeout do
Queries::Tag.all(min_date, max_level) Queries::Tag.all(min_date, max_level)
end end
end
def posts def posts
ActiveRecord::Base.without_timeout do
Queries::Upload.all(min_date, max_level) Queries::Upload.all(min_date, max_level)
end end
end
def user_feedbacks def user_feedbacks
ActiveRecord::Base.without_timeout do
Queries::UserFeedback.all Queries::UserFeedback.all
end end
end
def wiki_pages def wiki_pages
ActiveRecord::Base.without_timeout do
Queries::WikiPage.all(min_date, max_level) Queries::WikiPage.all(min_date, max_level)
end end
end end
end end
end end
end