feat(labelratio): new feature to monitor label ratio from auto and manual

this was designed more for dayton but could be used for all plants
This commit is contained in:
2025-07-14 10:18:23 -05:00
parent d6232cb358
commit 41308788fd
8 changed files with 156 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import { responses } from "../../../../globalUtils/routeDefs/responses.js";
import { tryCatch } from "../../../../globalUtils/tryCatch.js";
import { labelingProcess } from "../../controller/labeling/labelProcess.js";
import { apiHit } from "../../../../globalUtils/apiHits.js";
import { manualLabelCreated } from "../../controller/labeling/labelRatio.js";
const app = new OpenAPIHono({ strict: false });
@@ -32,7 +33,7 @@ app.openapi(
const { data: createLabel, error: labelError } = await tryCatch(
labelingProcess({ line: bodyData.line })
);
manualLabelCreated();
if (labelError) {
return c.json({
success: false,