Skip to content

Commit

Permalink
Merge pull request #2241 from IntersectMBO/fix/fix-drep-list-sql
Browse files Browse the repository at this point in the history
fix: drep list sql
  • Loading branch information
MSzalowski authored Oct 28, 2024
2 parents a5e7dbd + 9867c30 commit 5d33b50
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion govtool/backend/sql/list-dreps.sql
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ WHERE
(
COALESCE(?, '') = '' OR
dh.view ILIKE ? OR
off_chain_vote_drep_data.given_name ILIKE ? OR
off_chain_vote_drep_data.given_name ILIKE ?
)
GROUP BY
dh.raw,
Expand Down
3 changes: 0 additions & 3 deletions govtool/backend/src/VVA/AdaHolder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ import VVA.Types
sqlFrom :: ByteString -> SQL.Query
sqlFrom bs = fromString $ unpack $ Text.decodeUtf8 bs

listDRepsSql :: SQL.Query
listDRepsSql = sqlFrom $(embedFile "sql/list-dreps.sql")

getCurrentDelegationSql :: SQL.Query
getCurrentDelegationSql = sqlFrom $(embedFile "sql/get-current-delegation.sql")

Expand Down
4 changes: 0 additions & 4 deletions govtool/backend/src/VVA/DRep.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ listDReps mSearchQuery = withPool $ \conn -> do
( searchParam
, "%" <> searchParam <> "%"
, "%" <> searchParam <> "%"
, "%" <> searchParam <> "%"
, "%" <> searchParam <> "%"
, "%" <> searchParam <> "%"
, "%" <> searchParam <> "%"
)
timeZone <- liftIO getCurrentTimeZone
return
Expand Down

0 comments on commit 5d33b50

Please sign in to comment.