Skip to content

Commit

Permalink
fix moduled var check (#1795)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhlongviolin1 committed Sep 17, 2024
1 parent 4a0576b commit 404d1cc
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions taipy/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,8 @@ def __send_var_list_update( # noqa C901
front_var: t.Optional[str] = None,
):
ws_dict = {}
values = {v: _getscopeattr_drill(self, v) for v in modified_vars if _is_moduled_variable(v)}
is_custom_page = is_in_custom_page_context()
values = {v: _getscopeattr_drill(self, v) for v in modified_vars if is_custom_page or _is_moduled_variable(v)}
if not values:
return
for k, v in values.items():
Expand Down Expand Up @@ -1190,13 +1191,13 @@ def __get_variable_tree(self, data: t.Dict[str, t.Any]):
variable_tree[var_module_name] = {}
data_update = isinstance(v, filtered_value_types)
value = None if data_update else data[k]
if _is_moduled_variable(k):
variable_tree[var_module_name][var_name] = {
"type": type(v).__name__,
"value": value,
"encoded_name": k,
"data_update": data_update,
}
# if _is_moduled_variable(k):
variable_tree[var_module_name][var_name] = {
"type": type(v).__name__,
"value": value,
"encoded_name": k,
"data_update": data_update,
}
return variable_tree

def __handle_ws_get_data_tree(self):
Expand Down

0 comments on commit 404d1cc

Please sign in to comment.