Skip to content

Commit 7a638c7

Browse files
committed
Removed unnecessary SQLPanel.record_stats
This was a relic of the transition to a serializable panel and was unnecessary.
1 parent 0cbf478 commit 7a638c7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

debug_toolbar/panels/sql/panel.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,6 @@ def generate_server_timing(self, request, response):
314314
value = stats.get("sql_time", 0)
315315
self.record_server_timing("sql_time", title, value)
316316

317-
def record_stats(self, stats):
318-
"""
319-
Store data gathered by the panel. ``stats`` is a :class:`dict`.
320-
321-
Each call to ``record_stats`` updates the statistics dictionary.
322-
"""
323-
for query in stats.get("queries", []):
324-
query["params"]
325-
return super().record_stats(stats)
326-
327317
# Cache the content property since it manipulates the queries in the stats
328318
# This allows the caller to treat content as idempotent
329319
@cached_property

0 commit comments

Comments
 (0)