Forgot to remove decorated code and lint fix

This commit is contained in:
2021-12-30 17:28:38 +00:00
parent 860ff65c7e
commit 6a2d67c6f1
2 changed files with 1 additions and 6 deletions

View File

@@ -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)

View File

@@ -1,7 +1,7 @@
import hashlib
import os
import time
# import time
from rq import get_current_job
BLOCKSIZE = 65535