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'] 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__':