Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 20, 2024
1 parent c0d1677 commit 975d941
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pydatalab/pydatalab/routes/v0_1/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def save_user(user_id):
if not update:
return jsonify(status="success", detail="No update was performed."), 200

update_result = flask_mongo.db.users.update_one(
{"_id": ObjectId(user_id)}, {"$set": update})
update_result = flask_mongo.db.users.update_one({"_id": ObjectId(user_id)}, {"$set": update})

if update_result.matched_count != 1:
return jsonify(status="error", detail="Unable to update user."), 400
Expand Down

0 comments on commit 975d941

Please sign in to comment.