Skip to content

Commit

Permalink
removing blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
elg committed Oct 24, 2019
1 parent 4109127 commit 94ec408
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions passhportd/app/views_mod/user/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,17 +606,14 @@ def generate_sshkeyhash():
for u in query:
u.sshkeyhash=u.hash(u.sshkey)


try:
db.session.commit()
except exc.SQLAlchemyError as e:
return utils.response('ERROR: "' + name + '" -> ' + e.message, 409)

return utils.response('OK: All sshkey hash generated', 200)




@app.route("/user/attachedto/usergroup/<name>")
def user_attached_to_usergroup(name):
"""Return the list of the usergroups that contains this user"""
Expand Down

0 comments on commit 94ec408

Please sign in to comment.