Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 73ca67b

Browse files
committed
show true/false for boolean variables instead of 1/0
1 parent 88e3776 commit 73ca67b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pugdebug/gui/variables.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ def add_variable(self, table, variable, parent=None):
108108
if value is None:
109109
value = 'NULL'
110110

111+
if type == 'bool':
112+
value = ("%s" % (int(value) == 1)).lower()
113+
111114
args = [variable['name'], type, value]
112115
else:
113116
args = [variable['name'], type, ' ... ']

0 commit comments

Comments
 (0)