You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: vizro-core/src/vizro/actions/export_data_action.py
+9-8
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,6 @@
8
8
fromvizro.managersimportmodel_manager
9
9
fromvizro.managers._model_managerimportModelID
10
10
11
-
"""Pre-defined action function "export_data" to be reused in `action` parameter of VizroBaseModels."""
12
-
13
11
fromcollections.abcimportIterable
14
12
fromtypingimportLiteral, cast
15
13
@@ -27,7 +25,7 @@ class export_data(AbstractAction):
27
25
] = [] # TODO NOW: think about whether should in future rename this so it doesn't inconsistently use targets? May be ok now that targets doesn't yet have special role.
28
26
file_format: Literal["csv", "xlsx"] ="csv"
29
27
30
-
# TODO NOW: continue testing this and eventually remove.
28
+
# TODO NOW CHECK: continue testing this and eventually remove.
31
29
runtime_arg: str
32
30
33
31
deffunction(
@@ -56,8 +54,6 @@ def function(
56
54
# will change in future once the structure of controls has been worked out and we know how to pass ids through.
57
55
# See https://github.com/mckinsey/vizro/pull/880
58
56
# TODO NOW: move the setting of targets to validator. Reused in outputs and components
59
-
# TODO NOW: test this runtime argument
60
-
# print(f"{runtime_arg=}")
61
57
targets=self.targetsor [
62
58
output["id"]["target_id"]
63
59
foroutputinctx.outputs_list
@@ -84,12 +80,12 @@ def function(
84
80
85
81
returnoutputs
86
82
87
-
@property
88
83
# TODO NOW: think about if this is best way.
89
84
# overrides _outputs_ not outputs
90
85
# could convert to string ids and use outputs
91
86
# leave like this because hopefully will have single download component in future anyway with a reserved id
0 commit comments