From 80310801f3fedd7008c59b55b940a206289a26d4 Mon Sep 17 00:00:00 2001 From: Spyros Date: Sun, 29 Oct 2023 00:47:56 +0100 Subject: [PATCH] fix-lint --- application/frontend/src/types.ts | 2 +- application/tests/web_main_test.py | 2 +- application/web/web_main.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/frontend/src/types.ts b/application/frontend/src/types.ts index 8847dc445..a3c905b35 100644 --- a/application/frontend/src/types.ts +++ b/application/frontend/src/types.ts @@ -37,7 +37,7 @@ export interface GapAnalysisPathStart { paths: Record; extra: number; weakLinks: Record; - +} export interface PaginatedResponse { standards: Document[]; total_pages: number; diff --git a/application/tests/web_main_test.py b/application/tests/web_main_test.py index 5569ed166..4dd3fdbe2 100644 --- a/application/tests/web_main_test.py +++ b/application/tests/web_main_test.py @@ -706,4 +706,4 @@ def test_gap_analysis_weak_links_response(self, db_mock) -> None: headers={"Content-Type": "application/json"}, ) self.assertEqual(200, response.status_code) - self.assertEqual(expected, json.loads(response.data)) \ No newline at end of file + self.assertEqual(expected, json.loads(response.data)) diff --git a/application/web/web_main.py b/application/web/web_main.py index 83fedf93d..8d003c97d 100644 --- a/application/web/web_main.py +++ b/application/web/web_main.py @@ -215,6 +215,7 @@ def find_document_by_tag() -> Any: logger.info("tags aborting 404") abort(404, "Tag does not exist") + @app.route("/rest/v1/map_analysis", methods=["GET"]) @cache.cached(timeout=50, query_string=True) def gap_analysis() -> Any: