Forgot to remove decorated code and lint fix
This commit is contained in:
@@ -58,11 +58,6 @@ def check():
|
||||
@app.route("/status")
|
||||
@apikey
|
||||
def status():
|
||||
headers = request.headers
|
||||
auth = headers.get("X-Api-Key")
|
||||
if auth != "fbdhjsbf43443refdsafa":
|
||||
return jsonify({"message": "ERROR: Unauthorized"}), 401
|
||||
|
||||
jobid = request.args.get("jobid", type=str)
|
||||
job = Job.fetch(jobid, connection=redis)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user