mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-07-21 19:52:47 +00:00
Umgang mit mehreren Operator Einträgen verbessert
This commit is contained in:
@@ -78,6 +78,15 @@ def format_via_list(via: list[str]):
|
||||
return via[0]
|
||||
return ", ".join(via[:-1]) + " und " + via[-1]
|
||||
|
||||
def resolve_operator(operators):
|
||||
if not operators:
|
||||
return None
|
||||
for op in operators:
|
||||
if op in operators_module.OPERATOR_ALIASES or op in operators_module.OPERATORS:
|
||||
return op
|
||||
|
||||
return operators[0]
|
||||
|
||||
def operator_metadata(operator):
|
||||
_reload_operators_if_changed()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user