From f8feb4072350520e94df185a68e888ee68756270 Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 30 Mar 2020 17:00:59 +0200 Subject: [PATCH] minor --- consumer_api/views/consumers_view.py | 3 ++- consumer_api/views/log_view.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/consumer_api/views/consumers_view.py b/consumer_api/views/consumers_view.py index d8d9fa1..c12739c 100644 --- a/consumer_api/views/consumers_view.py +++ b/consumer_api/views/consumers_view.py @@ -1,6 +1,7 @@ import json -from flask import request, current_app, jsonify + from db import redis_client +from flask import jsonify from flask_classful import FlaskView diff --git a/consumer_api/views/log_view.py b/consumer_api/views/log_view.py index c63e682..abfff93 100644 --- a/consumer_api/views/log_view.py +++ b/consumer_api/views/log_view.py @@ -1,8 +1,9 @@ -from flask_classful import FlaskView from flask import request, current_app, Response +from flask_classful import FlaskView + class LogView(FlaskView): def post(self): current_app.logger.info(f"New message: {request.json['message']}") - return Response(status=204) + return Response(status = 204)