Skip to content

Commit

Permalink
#1591 Combine aed clustering uri from different columns
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhina-e committed Oct 2, 2024
1 parent 755a160 commit e512c2c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/model/clustering-jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const jsonTemplates = require('../utils/json-templates');
const { Client } = require('kubernetes-client');
const k8sClient = new Client({ version: '1.13' });
const s3 = new AWS.S3();
const curEnv = config('aws').env

let ClusteringJobs = {
find: function (options) {
Expand Down Expand Up @@ -92,7 +93,14 @@ let ClusteringJobs = {
options = {};
}
select.push(
"A.aed_id, A.time_min, A.time_max, A.frequency_min, A.frequency_max, A.recording_id, A.uri_image as 'uri', A.validated"
`A.aed_id,
A.time_min,
A.time_max,
A.frequency_min,
A.frequency_max,
A.recording_id,
CONCAT('audio_events/${curEnv}/detection/', A.job_id, '/png/', A.recording_id, '/', A.uri_param, '.png') as 'uri',
A.validated`
);

if (options.aed) {
Expand Down

0 comments on commit e512c2c

Please sign in to comment.