From e89d08395a505d30fffd01a625fe04a740c2fa4b Mon Sep 17 00:00:00 2001 From: Mantvydas Deltuva Date: Thu, 12 Sep 2024 01:11:12 +0300 Subject: [PATCH] MDE/PKFE-30 typos changes --- app/back-end/src/routes/workspace_apply_route.py | 10 +++++----- app/back-end/src/routes/workspace_download_route.py | 12 ++++++------ app/back-end/src/routes/workspace_merge_route.py | 4 ++-- app/front-end/src/features/editor/utils/helpers.tsx | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/back-end/src/routes/workspace_apply_route.py b/app/back-end/src/routes/workspace_apply_route.py index 5ec68ab..b88025d 100644 --- a/app/back-end/src/routes/workspace_apply_route.py +++ b/app/back-end/src/routes/workspace_apply_route.py @@ -68,7 +68,7 @@ def get_workspace_apply_spliceai(relative_path): { "type": "info", "message": f"Applying SpliceAI algorithm to '{relative_path}' with " - + f"override: `{override}'...", + + f"override: '{override}'...", }, uuid, sid, @@ -109,7 +109,7 @@ def get_workspace_apply_spliceai(relative_path): CONSOLE_FEEDBACK_EVENT, { "type": "errr", - "message": f"FileNotFoundError: {e} while SpliceAI applying algorithm " + "message": f"FileNotFoundError: {e} while applying SpliceAI algorithm" + f"{destination_path}", }, uuid, @@ -125,7 +125,7 @@ def get_workspace_apply_spliceai(relative_path): CONSOLE_FEEDBACK_EVENT, { "type": "errr", - "message": f"PermissionError: {e} while SpliceAI applying algorithm " + "message": f"PermissionError: {e} while applying SpliceAI algorithm" + f"{destination_path}", }, uuid, @@ -141,7 +141,7 @@ def get_workspace_apply_spliceai(relative_path): CONSOLE_FEEDBACK_EVENT, { "type": "errr", - "message": f"UnexpectedError: {e.message} while applying SpliceAI algorithm " + "message": f"UnexpectedError: {e.message} while applying SpliceAI algorithm" + f"{destination_path}", }, uuid, @@ -197,7 +197,7 @@ def get_workspace_apply_cadd(relative_path): { "type": "info", "message": f"Applying CADD algorithm to '{relative_path}' with " - + f"override: `{override}'...", + + f"override: '{override}'...", }, uuid, sid, diff --git a/app/back-end/src/routes/workspace_download_route.py b/app/back-end/src/routes/workspace_download_route.py index 8541b58..ad1fe69 100644 --- a/app/back-end/src/routes/workspace_download_route.py +++ b/app/back-end/src/routes/workspace_download_route.py @@ -64,7 +64,7 @@ def get_workspace_download_lovd(relative_path): { "type": "info", "message": f"Downloading LOVD data for gene '{gene}' to '{relative_path}' with " - + f"override: `{override}'...", + + f"override: '{override}'...", }, uuid, sid, @@ -134,7 +134,7 @@ def get_workspace_download_lovd(relative_path): ) return jsonify({"error": "An internal error occurred"}), 500 - return jsonify({"message": "LOVD data downloaded successful"}), 200 + return jsonify({"message": "LOVD data downloaded successfully"}), 200 @workspace_download_route_bp.route( @@ -180,7 +180,7 @@ def get_workspace_download_clinvar(relative_path): { "type": "info", "message": f"Downloading ClinVar data for gene '{gene}' to '{relative_path}' with " - + f"override: `{override}'...", + + f"override: '{override}'...", }, uuid, sid, @@ -252,7 +252,7 @@ def get_workspace_download_clinvar(relative_path): ) return jsonify({"error": "An internal error occurred"}), 500 - return jsonify({"message": "CliVar data downloaded successful"}), 200 + return jsonify({"message": "CliVar data downloaded successfullly"}), 200 @workspace_download_route_bp.route( @@ -296,7 +296,7 @@ def get_workspace_download_gnomad(relative_path): { "type": "info", "message": f"Downloading gnomAD data for gene '{gene}' to '{relative_path}' with " - + f"override: `{override}'...", + + f"override: '{override}'...", }, uuid, sid, @@ -366,4 +366,4 @@ def get_workspace_download_gnomad(relative_path): ) return jsonify({"error": "An internal error occurred"}), 500 - return jsonify({"message": "gnomAD data downloaded successful"}), 200 + return jsonify({"message": "gnomAD data downloaded successfullly"}), 200 diff --git a/app/back-end/src/routes/workspace_merge_route.py b/app/back-end/src/routes/workspace_merge_route.py index 150d958..6de3f6c 100644 --- a/app/back-end/src/routes/workspace_merge_route.py +++ b/app/back-end/src/routes/workspace_merge_route.py @@ -74,7 +74,7 @@ def get_workspace_merge_lovd_gnomad(relative_path): { "type": "info", "message": f"Merging LOVD and gnomAD data to '{relative_path}' with " - + f"override: `{override}'...", + + f"override: '{override}'...", }, uuid, sid, @@ -204,7 +204,7 @@ def get_workspace_merge_lovd_clinvar(relative_path): { "type": "info", "message": f"Merging LOVD and ClinVar data to '{relative_path}' with " - + f"override: `{override}'...", + + f"override: '{override}'...", }, uuid, sid, diff --git a/app/front-end/src/features/editor/utils/helpers.tsx b/app/front-end/src/features/editor/utils/helpers.tsx index e988e6e..19fa618 100644 --- a/app/front-end/src/features/editor/utils/helpers.tsx +++ b/app/front-end/src/features/editor/utils/helpers.tsx @@ -96,14 +96,14 @@ export const generateTimestamp = () => { return ( now.getFullYear() + '-' + - String(now.getMonth() + 1).padStart(2, '0') + // Months are zero-indexed + String(now.getMonth() + 1).padStart(2, '0') + '-' + String(now.getDate()).padStart(2, '0') + '_' + String(now.getHours()).padStart(2, '0') + - ':' + + '-' + String(now.getMinutes()).padStart(2, '0') + - ':' + + '-' + String(now.getSeconds()).padStart(2, '0') ); };