This commit is contained in:
Mateusz779 2023-04-19 10:25:14 +02:00
parent d6ed214d99
commit bdfb2e9b9e

8
app.py
View File

@ -187,9 +187,11 @@ def add_ip():
token = request.headers['token']
ip = request.form['ip']
except:
pass
print(token, ip)
return ""
return jsonify(message="400")
if db.update_image_allocation_ip(token, ip) is not None:
return jsonify(message="200")
else:
return jsonify(message="400")
if __name__ == '__main__':