fixes for screenshot worker

This commit is contained in:
Kyle Drake 2014-08-20 13:48:20 -07:00
parent 0aca6b3328
commit fbf78f04d6
8 changed files with 69 additions and 2 deletions

View file

@ -366,7 +366,7 @@ class Site < Sequel::Model
ext = File.extname(path).gsub(/^./, '')
if ext.match HTML_REGEX
ScreenshotWorker.perform_async values[:username], path
ScreenshotWorker.perform_async values[:username], relative_path
elsif ext.match IMAGE_REGEX
ThumbnailWorker.perform_async values[:username], relative_path
end