Skip to content

Commit 85245ce

Browse files
committed
fixed bug with use of dict
1 parent 61f5142 commit 85245ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyoracle_forms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from .misc import add_properties
3838
from .misc import registered_objects
3939

40-
__version__ = "0.2.9"
40+
__version__ = "0.2.10"
4141

4242

4343
def initialize_context(version: str = "12c", encoding: str = "utf-8") -> None:

pyoracle_forms/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def property_attribute(property_number: int) -> Tuple[str, Union[Property, Subob
9898

9999
def object_type(cls: Type[BaseObject], api_objects: Dict) -> Tuple[Dict, int]:
100100
try:
101-
obj_type = api_objects[cls.object_type]
101+
obj_type = api_objects[cls.object_type.value]
102102
except KeyError:
103103
# todo: clean up dirty hack
104104
# mostly for column_value, which seems to be not documented by orcl anyway

0 commit comments

Comments
 (0)