mirror of
https://github.com/hkalexling/Mango.git
synced 2026-05-01 00:00:55 -04:00
Sort download jobs listed on the download manager by time
This commit is contained in:
@@ -198,7 +198,7 @@ module MangaDex
|
|||||||
def get_all
|
def get_all
|
||||||
jobs = [] of Job
|
jobs = [] of Job
|
||||||
DB.open "sqlite3://#{@path}" do |db|
|
DB.open "sqlite3://#{@path}" do |db|
|
||||||
jobs = db.query_all "select * from queue", do |rs|
|
jobs = db.query_all "select * from queue order by time", do |rs|
|
||||||
Job.from_query_result rs
|
Job.from_query_result rs
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user