Skip to content

Commit

Permalink
tercenBool integration
Browse files Browse the repository at this point in the history
  • Loading branch information
agouy authored Oct 1, 2024
1 parent e3cb67c commit aea912f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tercen/client/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,16 @@ def progress( self, message, actual, total):

def operator_property(self, name, typeFn=str, default=None):
props = self.context.cubeQuery.operatorSettings.operatorRef.propertyValues

def tercenBool(value):
if value == "true":
return True
else:
return False

if typeFn == bool:
typeFn = tercenBool

for p in props:
if p.name == name:
if p.value is None:
Expand Down

0 comments on commit aea912f

Please sign in to comment.