mirror of
https://github.com/Crocmagnon/advent-of-code.git
synced 2024-12-21 21:31:53 +01:00
Fix pre-commit
This commit is contained in:
parent
aab661dd1d
commit
ffdc98b7b9
3 changed files with 4 additions and 4 deletions
|
@ -24,9 +24,9 @@ def parse_data(data: list[str]) -> DataType:
|
|||
for line in data:
|
||||
first, second = line.split(",")
|
||||
first_1, first_2 = first.split("-")
|
||||
first = set(range(int(first_1), int(first_2)+1))
|
||||
first = set(range(int(first_1), int(first_2) + 1))
|
||||
second_1, second_2 = second.split("-")
|
||||
second = set(range(int(second_1), int(second_2)+1))
|
||||
second = set(range(int(second_1), int(second_2) + 1))
|
||||
lines.append((first, second))
|
||||
return lines
|
||||
|
||||
|
|
|
@ -997,4 +997,4 @@
|
|||
16-33,16-33
|
||||
26-26,26-99
|
||||
42-83,78-79
|
||||
5-17,4-67
|
||||
5-17,4-67
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
5-7,7-9
|
||||
2-8,3-7
|
||||
6-6,4-6
|
||||
2-6,4-8
|
||||
2-6,4-8
|
||||
|
|
Loading…
Reference in a new issue