Skip to content

Commit

Permalink
Add api download list by hash. AddressForAll/suporte#28
Browse files Browse the repository at this point in the history
  • Loading branch information
0e1 committed Sep 4, 2024
1 parent 396ab7f commit 2d72055
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/optim-step4-api.sql
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,18 @@ CREATE or replace FUNCTION api.download_list(
;
$f$ language SQL VOLATILE;
COMMENT ON FUNCTION api.download_list
IS 'Returns the json for the site''s download list template.'
IS 'Returns the json for the site''s download list. Include filtered files.'
;

CREATE or replace FUNCTION api.download_list_hash(

) RETURNS jsonb AS $f$
SELECT *
FROM optim.vw03generate_list_hash
;
$f$ language SQL VOLATILE;
COMMENT ON FUNCTION api.download_list_hash
IS 'Returns the json for the site''s download list hash. Not include filtered files.'
;

----------------------
Expand Down

0 comments on commit 2d72055

Please sign in to comment.