File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def list_folders(
3838 project_id : str ,
3939 environment_slug : str ,
4040 path : str ,
41- lastSecretModified : Optional [datetime ] = None ,
41+ last_secret_modified : Optional [datetime ] = None ,
4242 recursive : bool = False ) -> ListFoldersResponse :
4343
4444 params = {
@@ -48,10 +48,10 @@ def list_folders(
4848 "recursive" : recursive ,
4949 }
5050
51- if lastSecretModified is not None :
51+ if last_secret_modified is not None :
5252 # Convert to UTC and format as RFC 3339 with 'Z' suffix
5353 # The API expects UTC times in 'Z' format (e.g., 2023-11-07T05:31:56Z)
54- utc_datetime = lastSecretModified .astimezone (timezone .utc ) if lastSecretModified .tzinfo else lastSecretModified .replace (tzinfo = timezone .utc )
54+ utc_datetime = last_secret_modified .astimezone (timezone .utc ) if last_secret_modified .tzinfo else last_secret_modified .replace (tzinfo = timezone .utc )
5555 params ["lastSecretModified" ] = utc_datetime .strftime ('%Y-%m-%dT%H:%M:%SZ' )
5656
5757 result = self .requests .get (
@@ -66,13 +66,8 @@ def get_folder_by_id(
6666 self ,
6767 id : str ) -> SingleFolderResponseItem :
6868
69- params = {
70- "id" : id ,
71- }
72-
7369 result = self .requests .get (
7470 path = f"/api/v2/folders/{ id } " ,
75- params = params ,
7671 model = SingleFolderResponse
7772 )
7873
You can’t perform that action at this time.
0 commit comments