Skip to content

Commit 03c0681

Browse files
committed
revert data variable name
1 parent b0043b1 commit 03c0681

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/django_idom/hooks.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,19 @@ def execute_query() -> None:
153153

154154
try:
155155
# Run the initial query
156-
data = query(*args, **kwargs)
156+
new_data = query(*args, **kwargs)
157157

158158
# Use a custom postprocessor, if provided
159159
if query_options.postprocessor:
160-
query_options.postprocessor(data, **query_options.postprocessor_kwargs)
160+
query_options.postprocessor(
161+
new_data, **query_options.postprocessor_kwargs
162+
)
161163

162164
# Use the default postprocessor
163165
else:
164-
django_query_postprocessor(data, **query_options.postprocessor_kwargs)
166+
django_query_postprocessor(
167+
new_data, **query_options.postprocessor_kwargs
168+
)
165169
except Exception as e:
166170
set_data(None)
167171
set_loading(False)
@@ -173,7 +177,7 @@ def execute_query() -> None:
173177
finally:
174178
set_should_execute(False)
175179

176-
set_data(data)
180+
set_data(new_data)
177181
set_loading(False)
178182
set_error(None)
179183

0 commit comments

Comments
 (0)