From 742d13d9c593fd8c37418aa0dd42284602444b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Thu, 24 Oct 2024 10:56:51 +0200 Subject: [PATCH] fix: make dreps searching available only for given name of all metadatas --- govtool/backend/sql/list-dreps.sql | 4 ---- govtool/backend/src/VVA/DRep.hs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/govtool/backend/sql/list-dreps.sql b/govtool/backend/sql/list-dreps.sql index 0c71e69a..123a3ce1 100644 --- a/govtool/backend/sql/list-dreps.sql +++ b/govtool/backend/sql/list-dreps.sql @@ -138,11 +138,7 @@ WHERE ( COALESCE(?, '') = '' OR dh.view ILIKE ? OR - off_chain_vote_drep_data.payment_address ILIKE ? OR off_chain_vote_drep_data.given_name ILIKE ? OR - off_chain_vote_drep_data.objectives ILIKE ? OR - off_chain_vote_drep_data.motivations ILIKE ? OR - off_chain_vote_drep_data.qualifications ILIKE ? ) GROUP BY dh.raw, diff --git a/govtool/backend/src/VVA/DRep.hs b/govtool/backend/src/VVA/DRep.hs index a8a95fb4..98c05ae5 100644 --- a/govtool/backend/src/VVA/DRep.hs +++ b/govtool/backend/src/VVA/DRep.hs @@ -47,10 +47,6 @@ listDReps mSearchQuery = withPool $ \conn -> do ( searchParam , "%" <> searchParam <> "%" , "%" <> searchParam <> "%" - , "%" <> searchParam <> "%" - , "%" <> searchParam <> "%" - , "%" <> searchParam <> "%" - , "%" <> searchParam <> "%" ) timeZone <- liftIO getCurrentTimeZone return