From a75b6073f245ad36c6d1e722071242926ea5b7e8 Mon Sep 17 00:00:00 2001 From: jtc42 Date: Thu, 2 Jan 2020 23:01:04 +0000 Subject: [PATCH] Renamed @response to @doc_response --- openflexure_microscope/api/v2/views/actions/camera.py | 2 +- openflexure_microscope/common/flask_labthings/decorators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/api/v2/views/actions/camera.py b/openflexure_microscope/api/v2/views/actions/camera.py index 66a3af92..7eb138d3 100644 --- a/openflexure_microscope/api/v2/views/actions/camera.py +++ b/openflexure_microscope/api/v2/views/actions/camera.py @@ -28,7 +28,7 @@ class CaptureAPI(Resource): } ) @marshal_with(capture_schema) - @response(200, "Capture successful") + @doc_response(200, "Capture successful") def post(self, args): microscope = find_device("openflexure_microscope") diff --git a/openflexure_microscope/common/flask_labthings/decorators.py b/openflexure_microscope/common/flask_labthings/decorators.py index 2952ca91..c17ef5c9 100644 --- a/openflexure_microscope/common/flask_labthings/decorators.py +++ b/openflexure_microscope/common/flask_labthings/decorators.py @@ -87,7 +87,7 @@ class doc(object): return f -class response(object): +class doc_response(object): def __init__(self, code, description, **kwargs): self.code = code self.description = description