From 46434bdb1847b9a68da34b7d4c51d80b0faa849f Mon Sep 17 00:00:00 2001 From: casulit Date: Thu, 31 Oct 2024 14:30:50 +0800 Subject: [PATCH] fix(deno-kv): Exclude entries with price_not_shown_is_process from queue --- config/deno-kv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deno-kv.ts b/config/deno-kv.ts index 898a03b..47fa507 100644 --- a/config/deno-kv.ts +++ b/config/deno-kv.ts @@ -194,7 +194,7 @@ export async function listenQueue(kv: Deno.Kv) { CONCAT('https://lamudi.com.ph/', json_data->'dataLayer'->'attributes'->>'urlkey_details') AS full_url, (json_data->>'images')::jsonb AS images FROM lamudi_raw_data - WHERE is_process = FALSE + WHERE is_process = FALSE AND price_not_shown_is_process = FALSE AND COALESCE((json_data->'dataLayer'->'attributes'->>'price')::INTEGER, 0) > 5000 AND json_data->'dataLayer'->'location'->>'region' IS NOT NULL AND json_data->'dataLayer'->'location'->>'city' IS NOT NULL