Skip to content

Commit

Permalink
Improve clarity of record_stats for serialization. (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling authored Jul 19, 2024
1 parent 8402c4d commit e1c0755
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion debug_toolbar/panels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ def record_stats(self, stats):
"""
Store data gathered by the panel. ``stats`` is a :class:`dict`.
Each call to ``record_stats`` updates the statistics dictionary.
Each call to ``record_stats`` updates the store's data for
the panel.
To support backwards compatibility, it will also update the
panel's statistics dictionary.
"""
self.toolbar.stats.setdefault(self.panel_id, {}).update(stats)
self.toolbar.store.save_panel(
Expand Down

0 comments on commit e1c0755

Please sign in to comment.