Skip to content

Commit

Permalink
[Profiles] do not select duplicated profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Oct 27, 2023
1 parent eea6b3b commit f663668
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ def profiles_management(action):
return util.get_rest_reply(flask.jsonify(data))
if action == "duplicate":
profile_id = flask.request.args.get("profile_id")
new_profile = models.duplicate_profile(profile_id)
models.select_profile(new_profile.profile_id)
flask.flash(f"New profile successfully created and selected.", "success")
models.duplicate_profile(profile_id)
flask.flash(f"New profile successfully created.", "success")
return util.get_rest_reply(flask.jsonify("Profile created"))
if action == "use_as_live":
profile_id = flask.request.args.get("profile_id")
Expand Down

0 comments on commit f663668

Please sign in to comment.