Check for absence of thumbnails_generated instead of presence

This commit is contained in:
Liam 2023-03-27 21:16:03 -04:00 committed by byte[]
parent c38b50aafa
commit ffe07cce3d
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ defmodule PhilomenaWeb.ActivityController do
{:ok, {images, _tags}} = {:ok, {images, _tags}} =
ImageLoader.search_string( ImageLoader.search_string(
conn, conn,
"created_at.lte:3 minutes ago, thumbnails_generated:true", "created_at.lte:3 minutes ago, -thumbnails_generated:false",
pagination: %{conn.assigns.image_pagination | page_number: 1} pagination: %{conn.assigns.image_pagination | page_number: 1}
) )

View file

@ -37,7 +37,7 @@ defmodule PhilomenaWeb.ImageController do
def index(conn, _params) do def index(conn, _params) do
{:ok, {images, _tags}} = {:ok, {images, _tags}} =
ImageLoader.search_string(conn, "created_at.lte:3 minutes ago, thumbnails_generated:true") ImageLoader.search_string(conn, "created_at.lte:3 minutes ago, -thumbnails_generated:false")
images = Elasticsearch.search_records(images, preload(Image, tags: :aliases)) images = Elasticsearch.search_records(images, preload(Image, tags: :aliases))