additional tweaks to upload preprocessor

This commit is contained in:
Albert Yi
2018-06-19 10:51:05 -07:00
parent 88dec0f592
commit a64a9fa0d4
2 changed files with 13 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ require 'mail'
class UploadErrorChecker
def check!
uploads = Upload.where("status like 'error%' and status not like 'error: RuntimeError - duplicate%' and created_at >= ?", 1.hour.ago)
uploads = Upload.where("status like 'error%' and status not like 'error: Upload::Error - Post with MD5%' and status not like 'error: RuntimeError - duplicate%' and created_at >= ?", 1.hour.ago)
if uploads.size > 5
mail = Mail.new do
from "webmaster@danbooru.donmai.us"