Skip to content

Commit 5ec1ad2

Browse files
living180tim-schilling
authored andcommitted
Fix confusing variable shadowing
1 parent 4a69612 commit 5ec1ad2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

debug_toolbar/panels/sql/tracking.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _record(self, method, sql, params):
182182
else:
183183
sql = str(sql)
184184

185-
params = {
185+
kwargs = {
186186
"vendor": vendor,
187187
"alias": alias,
188188
"sql": self._last_executed_query(sql, params),
@@ -228,7 +228,7 @@ def _record(self, method, sql, params):
228228
else:
229229
trans_id = None
230230

231-
params.update(
231+
kwargs.update(
232232
{
233233
"trans_id": trans_id,
234234
"trans_status": conn.info.transaction_status,
@@ -237,7 +237,7 @@ def _record(self, method, sql, params):
237237
)
238238

239239
# We keep `sql` to maintain backwards compatibility
240-
self.logger.record(**params)
240+
self.logger.record(**kwargs)
241241

242242
def callproc(self, procname, params=None):
243243
return self._record(super().callproc, procname, params)

0 commit comments

Comments
 (0)