SYNC
This commit is contained in:
@@ -64,6 +64,7 @@ def blacklist():
|
||||
call = bl.find().sort('_id')
|
||||
return render_template("blacklist.html", call=call) if rep == False else render_template("repair.html")
|
||||
|
||||
|
||||
@app.route("/test")
|
||||
def ttt():
|
||||
res = []
|
||||
@@ -75,6 +76,7 @@ def ttt():
|
||||
# #"<br>".join(request.environ)
|
||||
return str(res)
|
||||
|
||||
|
||||
@app.route("/work/<uuid>")
|
||||
def work_uuid(uuid):
|
||||
coll.update_one({"uuid": uuid}, {"$set": {"status": "INWORK"}})
|
||||
@@ -96,9 +98,11 @@ def call_put():
|
||||
@app.route("/api/v1/work/", methods=["POST"])
|
||||
def work():
|
||||
dt = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
coll.update_one({"uuid": request.form["uuid"]}, {"$set": {"status": "RECALL_" + str(request.form["recall"]).upper(), "dt": dt}})
|
||||
coll.update_one({"uuid": request.form["uuid"]}, {
|
||||
"$set": {"status": "RECALL_" + str(request.form["recall"]).upper(), "dt": dt}})
|
||||
return redirect("/")
|
||||
|
||||
|
||||
@app.route("/api/v1/blacklist/add/<number>", methods=["POST"])
|
||||
def blacklist_put(number):
|
||||
insdict = {"_id": number, "desc": datetime.datetime.now()}
|
||||
|
||||
Reference in New Issue
Block a user