diff options
Diffstat (limited to 'gn3/auth/authorisation/users')
-rw-r--r-- | gn3/auth/authorisation/users/collections/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/auth/authorisation/users/collections/models.py b/gn3/auth/authorisation/users/collections/models.py index 8e37ef9..b6598a6 100644 --- a/gn3/auth/authorisation/users/collections/models.py +++ b/gn3/auth/authorisation/users/collections/models.py @@ -107,8 +107,8 @@ def user_collections(rconn: Redis, user: User) -> tuple[dict, ...]: __toggle_boolean_field__(rconn, user.email, "collections-migrated") rconn.hset( __COLLECTIONS_DOC__, - key=user.user_id, - value=json.dumps(collections)) + key=str(user.user_id), + value=json.dumps(collections, cls=CollectionJSONEncoder)) return collections def save_collections(rconn: Redis, user: User, collections: tuple[dict, ...]) -> tuple[dict, ...]: |