Forgot to remove decorated code and lint fix
This commit is contained in:
@@ -58,11 +58,6 @@ def check():
|
|||||||
@app.route("/status")
|
@app.route("/status")
|
||||||
@apikey
|
@apikey
|
||||||
def status():
|
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)
|
jobid = request.args.get("jobid", type=str)
|
||||||
job = Job.fetch(jobid, connection=redis)
|
job = Job.fetch(jobid, connection=redis)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import time
|
# import time
|
||||||
from rq import get_current_job
|
from rq import get_current_job
|
||||||
|
|
||||||
BLOCKSIZE = 65535
|
BLOCKSIZE = 65535
|
||||||
|
|||||||
Reference in New Issue
Block a user