Skip to content

Commit 9cbca92

Browse files
author
Logic
committed
undo addpath
1 parent 1c6ba4a commit 9cbca92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def addpath():
7979

8080
user = user_db.find_one({'email': email})
8181
if user:
82-
user_db.update_one({'email': email}, {'$push': {'path': (path, doc_name)}})
82+
user_db.update_one({'email': email}, {'$push': {'path': path}})
8383
return jsonify({'message': 'Path added'}), 200
8484
else:
8585
return jsonify({'message': 'User not found'}), 400

0 commit comments

Comments
 (0)