mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-26 21:14:19 +00:00
🐛 Decorator factory shouldn't be async
This commit is contained in:
parent
4c377619fe
commit
1fd159a70d
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ import royalnet.lazy
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
async def use_database(session_class: t.Union[t.Type[sqlalchemy.orm.Session], royalnet.lazy.Lazy], *args, **kwargs):
|
def use_database(session_class: t.Union[t.Type[sqlalchemy.orm.Session], royalnet.lazy.Lazy], *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Decorator factory which allows a :class:`~royalnet.engineer.conversation.Conversation` to use a
|
Decorator factory which allows a :class:`~royalnet.engineer.conversation.Conversation` to use a
|
||||||
:class:`sqlalchemy.orm.Session` created from the passed :class:`sqlalchemy.orm.sessionmaker` .
|
:class:`sqlalchemy.orm.Session` created from the passed :class:`sqlalchemy.orm.sessionmaker` .
|
||||||
|
|
Loading…
Reference in a new issue