Skip to content

Commit 374a046

Browse files
authored
Merge pull request #900 from pevzi/master
Fix SQL panel not displaying database markers when using Python 3
2 parents e174168 + 44eaecd commit 374a046

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)