Fix movie backfill task

This commit is contained in:
2023-05-13 11:48:24 +10:00
parent 1e4abe3725
commit f613717852
2 changed files with 11 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ module Admin
movies.where(title: title, year: year).one
end
def by_url(url:)
movies.where(url: url).one
end
def listing
movies.order(Sequel.lit("year desc")).to_a
end