Skip to content

Commit 44eaecd

Browse files
committed
Fix SQL panel not displaying database markers when using Python 3
1 parent ad6a55b commit 44eaecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/panels/sql/panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def generate_stats(self, request, response):
148148
for n, db in enumerate(self._databases.values()):
149149
rgb = [0, 0, 0]
150150
color = n % 3
151-
rgb[color] = 256 - n / 3 * factor
151+
rgb[color] = 256 - n // 3 * factor
152152
nn = color
153153
# XXX: pretty sure this is horrible after so many aliases
154154
while rgb[color] < factor:

0 commit comments

Comments
 (0)