No string = splitting on as many spacecharacters as needed, ' ' = only one...

This commit is contained in:
2024-04-16 00:52:01 +02:00
parent 6e0b7e3e70
commit ef0205f866

View File

@ -136,7 +136,7 @@ def parse_line(input_line: str) -> dict:
#it should handle changes from CET to CEST
try:
input_line = input_line.split("\n")[0] #No idea why it appends a newline if I don't do this?
space_split = input_line.split(' ')
space_split = input_line.split()
month = space_split[0]
dateint = space_split[1]
timestr = space_split[2]