From 44eaecd18fb0e9644aa91bc1122f20ddb0bde26f Mon Sep 17 00:00:00 2001 From: pevzi Date: Thu, 29 Dec 2016 17:14:56 +0700 Subject: [PATCH] Fix SQL panel not displaying database markers when using Python 3 --- debug_toolbar/panels/sql/panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_toolbar/panels/sql/panel.py b/debug_toolbar/panels/sql/panel.py index 275ec9692..afc2d2785 100644 --- a/debug_toolbar/panels/sql/panel.py +++ b/debug_toolbar/panels/sql/panel.py @@ -148,7 +148,7 @@ def generate_stats(self, request, response): for n, db in enumerate(self._databases.values()): rgb = [0, 0, 0] color = n % 3 - rgb[color] = 256 - n / 3 * factor + rgb[color] = 256 - n // 3 * factor nn = color # XXX: pretty sure this is horrible after so many aliases while rgb[color] < factor: