From a8f9d16ae12c284fb4636f9624e0fd535aef7dcc Mon Sep 17 00:00:00 2001 From: AntoniaBK Date: Mon, 24 Jun 2024 11:28:27 +0200 Subject: [PATCH] Fix: inverted responses for (un)categorize --- website/web/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/web/__init__.py b/website/web/__init__.py index 9f702d15..f16f7aeb 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -684,7 +684,7 @@ def uncategorize_capture(tree_uuid: str, category: str) -> str | WerkzeugRespons if not enable_categorization: return jsonify({'response': 'Categorization not enabled.'}) lookyloo.uncategorize_capture(tree_uuid, category) - return jsonify({'response': f'{category} successfully added to {tree_uuid}'}) + return jsonify({'response': f'{category} successfully removed from {tree_uuid}'}) @app.route('/tree//categorize/', defaults={'category': ''}) @@ -693,7 +693,7 @@ def categorize_capture(tree_uuid: str, category: str) -> str | WerkzeugResponse if not enable_categorization: return jsonify({'response': 'Categorization not enabled.'}) lookyloo.categorize_capture(tree_uuid, category) - return jsonify({'response': f'{category} successfully removed from {tree_uuid}'}) + return jsonify({'response': f'{category} successfully added to {tree_uuid}'}) @app.route('/tree//stats', methods=['GET'])