From 21439a5da5000034a804f8fef81d164a24d6af5b Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 2 Jan 2024 19:05:50 -0300 Subject: [PATCH] conseguir ultima entry fixes #10 --- sitio/src/routes/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sitio/src/routes/+page.server.ts b/sitio/src/routes/+page.server.ts index 91b9e82..f43feb5 100644 --- a/sitio/src/routes/+page.server.ts +++ b/sitio/src/routes/+page.server.ts @@ -12,7 +12,7 @@ export const load: PageServerLoad = async ({ params }) => { }) .from(precios) .groupBy(precios.ean) - .having(sql`max(length(name))`) + .having(sql`max(length(name)) and max(parser_version)`) .orderBy(sql`random()`) .limit(150); const res = await q;