File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,6 @@ def __build_payload_selector(
312312) -> str :
313313 # empty json object to extend by label data later
314314 payload_selector = "jsonb_build_object()"
315-
316315 if attributes_to_include and len (attributes_to_include ) > 0 :
317316 payload_selector = ""
318317 for attr , data_type in attributes_to_include .items ():
@@ -324,7 +323,7 @@ def __build_payload_selector(
324323 and data_type != enums .DataTypes .PERMISSION .value
325324 ):
326325 payload_selector += f"'{ attr } ', (r.\" data\" ->>'{ attr } ')::{ data_type } "
327- if data_type == enums .DataTypes .PERMISSION .value :
326+ elif data_type == enums .DataTypes .PERMISSION .value :
328327 payload_selector += f"'{ attr } ', r.\" data\" ->'{ attr } '"
329328 else :
330329 payload_selector += f"'{ attr } ', r.\" data\" ->>'{ attr } '"
You can’t perform that action at this time.
0 commit comments