mac address to string

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 00:52:44 +01:00
parent 14a6614d6a
commit 5e4479863b
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ def register_tube(mac_address):
@app.route('/register_tube', methods=['POST']) @app.route('/register_tube', methods=['POST'])
def register_tube_route(): def register_tube_route():
mac_address = request.form.get('mac_address') mac_address = request.form.get('mac_address')
register_tube(mac_address) register_tube(str(mac_address))
return jsonify({'success': True, 'message': 'Tube registered successfully.'}) return jsonify({'success': True, 'message': 'Tube registered successfully.'})