Fix downloaders

This commit is contained in:
Alex Ling
2020-08-04 11:36:36 +00:00
parent 9a787ccbc3
commit 5e01cc38fe
2 changed files with 18 additions and 14 deletions
+2
View File
@@ -27,6 +27,7 @@ module MangaDex
def pop : Queue::Job?
job = nil
MainFiber.run do
DB.open "sqlite3://#{@queue.path}" do |db|
begin
db.query_one "select * from queue where id not like '%-%' " \
@@ -37,6 +38,7 @@ module MangaDex
rescue
end
end
end
job
end
+2
View File
@@ -8,6 +8,7 @@ class Plugin
def pop : Queue::Job?
job = nil
MainFiber.run do
DB.open "sqlite3://#{@queue.path}" do |db|
begin
db.query_one "select * from queue where id like '%-%' " \
@@ -18,6 +19,7 @@ class Plugin
rescue
end
end
end
job
end