CorrectionDBrecords

main
DenisN 2025-07-16 07:39:52 -04:00
parent a0096e652c
commit 818900f276
4 changed files with 7 additions and 6 deletions

View File

@ -159,5 +159,6 @@ export class ClickhouseService {
// }
break;
}
return 1;
}
}

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@ export class ZvksmetricsController {
let sum: any = { value: (a + b) / 4 * b + a };
await this.metricsService.useStatusModel(inputMetrics);
// let a = await this.metricsService.showStatus();
console.log(inputMetrics);
// console.log(inputMetrics);
return sum.value;
}

View File

@ -78,12 +78,12 @@ export class ZvksmetricsService {
let intermediate = await this.getComplexMetricsValues(inp, prev, complex, model, scope);
console.log(intermediate);
// console.log(intermediate);
let ctp: any = classToPlain(intermediate);
let copmplexParameterBody: string = JSON.stringify(ctp);
let rtp: any = classToPlain(inputData);
let rtp: any = classToPlain(inp);
let rawParameterBody: string = JSON.stringify(rtp);
// console.log(parameterBody);
// console.log(rawParameterBody);
let abc = new ClickhouseService();
await abc.ClickHouseAddRecords('raw', rawParameterBody);
await abc.ClickHouseAddRecords('complex', copmplexParameterBody);
@ -260,7 +260,7 @@ export class ZvksmetricsService {
async saveRanges(inputRanges: string): Promise<any> {
let ret: any;
let filePath = './src/zvksmetrics/conf/ranges.json';
console.log(inputRanges);
// console.log(inputRanges);
let inp: string = JSON.stringify(inputRanges);
try {
await writeFile(filePath, inp);