Skip to content

Commit 9dc5e51

Browse files
committed
Updated attributes in set_attributes
1 parent 59677ac commit 9dc5e51

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/select_ai/async_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async def set_attributes(self, attributes: ProfileAttributes):
210210
)
211211
parameters = {
212212
"profile_name": self.profile_name,
213-
"attributes": self.attributes.json(),
213+
"attributes": attributes.json(),
214214
}
215215
async with async_cursor() as cr:
216216
await cr.callproc(

src/select_ai/profile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import json
99
from contextlib import contextmanager
1010
from dataclasses import replace as dataclass_replace
11+
from pprint import pformat
1112
from typing import Generator, Iterator, Mapping, Optional, Tuple, Union
1213

1314
import oracledb
@@ -188,7 +189,7 @@ def set_attributes(self, attributes: ProfileAttributes):
188189
)
189190
parameters = {
190191
"profile_name": self.profile_name,
191-
"attributes": self.attributes.json(),
192+
"attributes": attributes.json(),
192193
}
193194
with cursor() as cr:
194195
cr.callproc(

0 commit comments

Comments
 (0)