Skip to content

Commit

Permalink
[Device] Fix new device parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Sep 4, 2022
1 parent 01abb95 commit 9d859ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/Interfaces/web_interface/api/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def select_device():
@api.api.route("/create_device", methods=['POST'])
@login.login_required_when_activated
def create_device():
new_device_id = models.create_new_device()
models.select_device(new_device_id)
new_device = models.create_new_device()
models.select_device(community.CommunityUserAccount.get_device_id(new_device))
device = models.get_selected_user_device()
flask.flash(f"Created and selected {device['name']} device", "success")
return flask.jsonify(device)

0 comments on commit 9d859ed

Please sign in to comment.