From 13fd4f632c74657e3dc8f9b11ece2855efcdbdb9 Mon Sep 17 00:00:00 2001 From: John Brestelli Date: Wed, 22 Oct 2025 09:32:56 -0400 Subject: [PATCH] get sanitized abbrev from apidb.organism --- Model/lib/psql/webready/orgSpecific/OrganismAbbreviation.psql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/lib/psql/webready/orgSpecific/OrganismAbbreviation.psql b/Model/lib/psql/webready/orgSpecific/OrganismAbbreviation.psql index 42dd053e9..8959fd0f1 100644 --- a/Model/lib/psql/webready/orgSpecific/OrganismAbbreviation.psql +++ b/Model/lib/psql/webready/orgSpecific/OrganismAbbreviation.psql @@ -2,7 +2,7 @@ :CREATE_AND_POPULATE select tn.name as organism, o.name_for_filenames, - translate(':ORG_ABBREV', '.-', '') AS sanitized_org_abbrev, -- remove . and - for use in database object names + o.sanitized_abbrev AS sanitized_org_abbrev, -- remove . and - for use in database object names ':PROJECT_ID' as project_id, ':ORG_ABBREV' as org_abbrev, CURRENT_TIMESTAMP as modification_date from apidb.Organism o, sres.TaxonName tn where o.taxon_id = tn.taxon_id