Commit 40c6b9b9 authored by flfuchs's avatar flfuchs 🎨
Browse files

Allow lower case

parent 7050535f
......@@ -48,9 +48,9 @@ def cordon_record_factory(raw_timestamp: str, raw_direction: str) -> GenericResu
time_stamp = datetime.strptime(raw_timestamp, "%d.%m.%Y %H:%M:%S")
except ValueError as type_error:
return GenericResult.from_answer(str(type_error))
if raw_direction == "IN":
if raw_direction.lower() == "in":
direction = ObservedDirection.In
elif raw_direction == "OUT":
elif raw_direction.lower() == "out":
direction = ObservedDirection.Out
else:
return GenericResult.from_answer(f"could not convert direction {raw_direction}")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment