From e9aefbfb8343b18797ebdbb47ca594a0c40fff0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20=C3=96stberg?= Date: Tue, 22 Jun 2021 15:58:04 +0200 Subject: [PATCH] That should be a string... --- backend/migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/migrations.py b/backend/migrations.py index 2ca7e152..67020f3c 100644 --- a/backend/migrations.py +++ b/backend/migrations.py @@ -35,7 +35,7 @@ def migrate_v2_to_v3(db): * Remove the ``DATA_LIST`` and ``STATISTICS`` permissions from all users. """ logging.info("Remove the DATA_LIST and STATISTICS permissions") - db["users"].update_many({}, {"$pull": {"permissions": {$in: ["STATISTICS", "DATA_LIST"]}}}) + db["users"].update_many({}, {"$pull": {"permissions": {"$in": ["STATISTICS", "DATA_LIST"]}}}) # Position 0 is empty since the first release is 1