From 41f82787006156727ec29ddae6caec51e5c03908 Mon Sep 17 00:00:00 2001 From: mateuscardosodeveloper Date: Thu, 5 Oct 2023 14:58:50 -0300 Subject: [PATCH] Fixes method of run notificationCreate --- src/tagoio_sdk/modules/Resources/Notification_Type.py | 2 +- src/tagoio_sdk/modules/Resources/Run.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tagoio_sdk/modules/Resources/Notification_Type.py b/src/tagoio_sdk/modules/Resources/Notification_Type.py index 15a9d04..e1446f7 100644 --- a/src/tagoio_sdk/modules/Resources/Notification_Type.py +++ b/src/tagoio_sdk/modules/Resources/Notification_Type.py @@ -58,7 +58,7 @@ class NotificationInfoBasic(TypedDict): created_at: datetime -class NotificationcreateReturn(TypedDict): +class NotificationCreateReturn(TypedDict): id: GenericID diff --git a/src/tagoio_sdk/modules/Resources/Run.py b/src/tagoio_sdk/modules/Resources/Run.py index 446ad0e..ad4b00d 100644 --- a/src/tagoio_sdk/modules/Resources/Run.py +++ b/src/tagoio_sdk/modules/Resources/Run.py @@ -4,7 +4,7 @@ from tagoio_sdk.common.tagoio_module import TagoIOModule from tagoio_sdk.modules.Resources.Notification_Type import ( NotificationCreate, - NotificationcreateReturn, + NotificationCreateReturn, NotificationInfo, ) from tagoio_sdk.modules.Resources.Run_Type import ( @@ -160,14 +160,14 @@ def notificationList(self, userID: GenericID) -> list[NotificationInfo]: def notificationCreate( self, userID: GenericID, data: NotificationCreate - ) -> NotificationcreateReturn: + ) -> NotificationCreateReturn: result = self.doRequest( { "path": "/run/notification/", "method": "POST", "body": { "run_user": userID, - "data": data, + **data, }, } )