d29f055713636c5629ddb7f48805536d39e550cb,debug_toolbar/panels/sql.py,SQLDebugPanel,nav_subtitle,#SQLDebugPanel#,152

Before Change


        return _("SQL")

    def nav_subtitle(self):
        self._queries = connection.queries[self._offset:]
        self._sql_time = sum([q["duration"] for q in self._queries])
        num_queries = len(self._queries)
        // TODO l10n: use ngettext
        return "%d %s in %.2fms" % (

After Change


            }
            self._queries.extend([(alias, q) for q in db_queries])

        self._queries.sort(key=lambda x: x[1]["start_time"])
        self._sql_time = sum([d["time_spent"] for d in self._databases.itervalues()])
        num_queries = len(self._queries)
        // TODO l10n: use ngettext
        return "%d %s in %.2fms" % (
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: d29f055713636c5629ddb7f48805536d39e550cb
Time: 2011-03-24
Author: dcramer@gmail.com
File Name: debug_toolbar/panels/sql.py
Class Name: SQLDebugPanel
Method Name: nav_subtitle


Project Name: cesium-ml/cesium
Commit Name: 953125f3ada4a4e28f9934128daacd0eb2fcd514
Time: 2015-09-15
Author: a.crellinquick@gmail.com
File Name: mltsp/celery_task_tools.py
Class Name:
Method Name: clean_up_data_dict


Project Name: jazzband/django-debug-toolbar
Commit Name: 634bd0d68cb30d25705a049d46aa72e9a64e9dbd
Time: 2011-04-06
Author: rob@cogit8.org
File Name: debug_toolbar/panels/sql.py
Class Name: SQLDebugPanel
Method Name: nav_subtitle