Skip to content

Commit d62f446

Browse files
Kevin Dunndrstrangelooker
authored andcommitted
Removing unnecessary loop
1 parent 3ebe8ca commit d62f446

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/python/create_dashboard_filter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ def update_elements_filters(element: DashboardElement, filter: DashboardFilter)
6363
current_filterables = element.result_maker.filterables
6464
element.result_maker.filterables = []
6565
for filterable in current_filterables:
66-
new_listens = []
67-
for each in filterable.listen:
68-
new_listens.append(each)
66+
new_listens = filterable.listen
6967

7068
# Add listener for new filter, if model and explore is the same
7169
# You can easily add further restrictions to what tiles or queries within merged results will listen to the new tile

0 commit comments

Comments
 (0)