Skip to content

Commit 53ad461

Browse files
committed
Cleaning up some of the bigger API functions.
Minor changes, that allow me to make sure things are named properly and can be executed from the sql files.
1 parent 60b206a commit 53ad461

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

function/doi/01_datasetinfo.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SELECT DISTINCT dts.datasetid,
3737
'database', cstdb.databasename,
3838
'doi', doi.dois,
3939
'datasetpi', dsau.authors,
40-
'agerange', agerange.ages))
40+
'agerange', agerange.ages)) AS site
4141
FROM
4242
ndb.datasets AS dts
4343
LEFT OUTER JOIN ndb.collectionunits AS clu ON clu.collectionunitid = dts.collectionunitid
@@ -96,7 +96,7 @@ SELECT DISTINCT dts.datasetid,
9696
'database', cstdb.databasename,
9797
'doi', doi.dois,
9898
'datasetpi', dsau.authors,
99-
'agerange', agerange.ages))
99+
'agerange', agerange.ages)) AS site
100100
FROM
101101
ndb.datasets AS dts LEFT OUTER JOIN
102102
ndb.collectionunits AS clu ON clu.collectionunitid = dts.collectionunitid LEFT OUTER JOIN

function/doi/ndbdata.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ WITH dssamples AS (
6868
WHERE ds.datasetid = dsid
6969
GROUP BY ds.datasetid, dsinfo.dataset
7070

71-
$function$
71+
$function$;
7272

7373
CREATE OR REPLACE FUNCTION doi.ndbdata(dsid integer[])
7474
RETURNS TABLE(datasetid integer, data jsonb)

0 commit comments

Comments
 (0)