Add length_seconds to subscription search

This commit is contained in:
Omar Roth 2019-01-02 14:20:57 -06:00
parent a02b539362
commit 7951d4c8aa

View File

@ -633,7 +633,7 @@ get "/search" do |env|
count, videos = channel_search(search_query, page, channel)
elsif subscriptions
if view_name
videos = PG_DB.query_all("SELECT id,title,published,updated,ucid,author FROM (
videos = PG_DB.query_all("SELECT id,title,published,updated,ucid,author,length_seconds FROM (
SELECT *,
to_tsvector(#{view_name}.title) ||
to_tsvector(#{view_name}.author)