From 76950f1510d1fbac4cd3bda1e1e014d0e1de3cee Mon Sep 17 00:00:00 2001 From: Clayton Smith Date: Wed, 7 Aug 2024 14:21:07 -0400 Subject: [PATCH] fixed some things --- src/backend/tools/minimap.py | 5 ++++- src/interfaces/coral_web/Dockerfile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/backend/tools/minimap.py b/src/backend/tools/minimap.py index afd912e2fa..fac41b42b9 100644 --- a/src/backend/tools/minimap.py +++ b/src/backend/tools/minimap.py @@ -95,7 +95,10 @@ def run(self, query: str) -> str: # Rename id to doc_id for result in results: - result['doc_id'] = result.pop('id') + try: + result['doc_id'] = result.get('id') + except Exception as ex: + ... return results diff --git a/src/interfaces/coral_web/Dockerfile b/src/interfaces/coral_web/Dockerfile index ed1df92b2c..6236d852a8 100644 --- a/src/interfaces/coral_web/Dockerfile +++ b/src/interfaces/coral_web/Dockerfile @@ -23,7 +23,7 @@ COPY .env.production . # Build the Next.js app ARG NODE_ENV=development -RUN if [ "$NODE_ENV" = "production" ]; then npm run build; else npm run build:dev; fi +RUN if [ "$NODE_ENV" = "production" ]; then npm run build; fi # Next.js collects completely anonymous telemetry data about general usage. Learn more here: https://nextjs.org/telemetry