-
This commit is contained in:
parent
d6ed214d99
commit
bdfb2e9b9e
8
app.py
8
app.py
@ -187,9 +187,11 @@ def add_ip():
|
|||||||
token = request.headers['token']
|
token = request.headers['token']
|
||||||
ip = request.form['ip']
|
ip = request.form['ip']
|
||||||
except:
|
except:
|
||||||
pass
|
return jsonify(message="400")
|
||||||
print(token, ip)
|
if db.update_image_allocation_ip(token, ip) is not None:
|
||||||
return ""
|
return jsonify(message="200")
|
||||||
|
else:
|
||||||
|
return jsonify(message="400")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user