Skip to content

Commit 6b3bc61

Browse files
committed
fix boolean bug
1 parent d5a7fcf commit 6b3bc61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webstruct/features/global_features.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,5 @@ def _add_pattern_features(feature_dicts, pattern, out_value, missing_value, sepa
9999

100100
# FIXME: there should be a cleaner/faster way
101101
if not all(v == out_value for v in values):
102+
values = [str(v) if type(v) == bool else v for v in values]
102103
featdict[separator.join(keys)] = separator.join(values)

0 commit comments

Comments
 (0)