Skip to content

Commit 4db0958

Browse files
committed
minor fix
1 parent 86270f1 commit 4db0958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_scripts/get_traumatic_pages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def main():
2424
p.add_option('-N', '--non-traumatic', action="store", dest="non_traumatic",
2525
help="Non traumatic categories list (semicolon separated)")
2626
p.add_option('-e', '--min-edits', action="store", dest="min_edits",
27-
help="Minimum number of edits")
27+
help="Minimum number of edits", type="int")
2828
opts, files = p.parse_args()
2929

3030
if len(files) != 2:
@@ -150,7 +150,7 @@ def main():
150150
if int(edits_row[0]) > opts.min_edits and t == 1:
151151
belonging = [is_t, is_nt, is_n, is_h]
152152
csv_writer[t].writerow(
153-
[page, t] + row + belonging
153+
[page] + row + belonging
154154
)
155155
else:
156156
continue

0 commit comments

Comments
 (0)