From 975d941dea8291f5d6df4545ff5b3253bf1bc192 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:34:19 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pydatalab/pydatalab/routes/v0_1/users.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pydatalab/pydatalab/routes/v0_1/users.py b/pydatalab/pydatalab/routes/v0_1/users.py index d759b673f..9f4bdeb1d 100644 --- a/pydatalab/pydatalab/routes/v0_1/users.py +++ b/pydatalab/pydatalab/routes/v0_1/users.py @@ -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