Fixes
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
import tempfile
|
||||
|
||||
from flask import jsonify, request, abort, current_app, Response
|
||||
from flask import request, abort, current_app, Response
|
||||
from flask_classful import FlaskView
|
||||
from utils import json_required
|
||||
import opentracing
|
||||
from schemas import SampleSchema
|
||||
import json
|
||||
import uwsgi
|
||||
|
||||
import pickle
|
||||
|
||||
class FilterView(FlaskView):
|
||||
sampleschema = SampleSchema(many=False)
|
||||
|
||||
@json_required
|
||||
def post(self):
|
||||
if current_app.config.get('DROPALL'):
|
||||
return Response(status=200)
|
||||
@@ -46,6 +44,6 @@ class FilterView(FlaskView):
|
||||
"description": desc
|
||||
}
|
||||
|
||||
uwsgi.mule_msg(json.dumps(task))
|
||||
uwsgi.mule_msg(pickle.dumps(task))
|
||||
|
||||
return Response(status=200)
|
||||
|
||||
Reference in New Issue
Block a user