Skip to content

Commit 042e040

Browse files
fix: fix incorrect default data for filter list
1 parent 08ddac5 commit 042e040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adventofcode/year_2021/day_03_2021.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def filter_list(input_data: List[str], use_most_common: bool, idx: int = 0) -> i
4949
if len(count_results) > 1 and count_results[0][1] != count_results[1][1]:
5050
target = str(count_results[0][0] if use_most_common else count_results[1][0])
5151
else:
52-
target = str(use_most_common)
52+
target = str(int(use_most_common))
5353

5454
filtered_input_data = [i for i in input_data if i[idx] == str(target)]
5555

0 commit comments

Comments
 (0)