From 34f6070f834a7b75b590bd7427490872ef625295 Mon Sep 17 00:00:00 2001 From: Douwe van der Meij Date: Fri, 15 Nov 2024 12:07:02 +0100 Subject: [PATCH] all crud command now pass user token payload to command --- fractal/__init__.py | 2 +- fractal/contrib/fastapi/routers/default.py | 3 +++ pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fractal/__init__.py b/fractal/__init__.py index 08c9318..83d6ee5 100644 --- a/fractal/__init__.py +++ b/fractal/__init__.py @@ -1,6 +1,6 @@ """Fractal is a scaffolding toolkit for building SOLID logic for your Python applications.""" -__version__ = "5.3.0" +__version__ = "5.3.1" from abc import ABC diff --git a/fractal/contrib/fastapi/routers/default.py b/fractal/contrib/fastapi/routers/default.py index 9cf3ba0..c63882a 100644 --- a/fractal/contrib/fastapi/routers/default.py +++ b/fractal/contrib/fastapi/routers/default.py @@ -159,6 +159,7 @@ def add_entity( entity=_entity, user_id=str(kwargs.get("uid")), specification=specification, + **kwargs, ) def update_entity( @@ -199,6 +200,7 @@ def update_entity( entity=_entity, user_id=str(kwargs.get("uid")), specification=specification, + **kwargs, ) def delete_entity( @@ -213,6 +215,7 @@ def delete_entity( user_id=str(kwargs.get("uid")), account_id=str(kwargs.get("account")), specification=specification, + **kwargs, ) return {} diff --git a/pyproject.toml b/pyproject.toml index a0167e8..b4f056a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fractal-toolkit" -version = "5.3.0" +version = "5.3.1" description = "Fractal is a scaffolding toolkit for building SOLID logic for your Python applications." authors = ["Douwe van der Meij "]