Skip to content

Commit e593c60

Browse files
committed
casting booleans to int
1 parent 4db0958 commit e593c60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python_scripts/get_traumatic_pages.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ def main():
148148
edits_row = list(cursor.fetchone())
149149

150150
if int(edits_row[0]) > opts.min_edits and t == 1:
151-
belonging = [is_t, is_nt, is_n, is_h]
151+
belonging = [
152+
int(is_t), int(is_nt), int(is_n), int(is_h)
153+
]
152154
csv_writer[t].writerow(
153155
[page] + row + belonging
154156
)

0 commit comments

Comments
 (0)