tcl: ignore missing direction (#67516)
gitea-wip/passerelle/pipeline/pr-main This commit looks good Details
gitea-wip/passerelle/pipeline/head Build started... Details
gitea/passerelle/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2023-01-08 12:03:27 +01:00
parent 8ae7ac46aa
commit d0da1e39d6
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@ class Tcl(BaseResource):
break
stop['passings'].append(passing)
# create dictionary key from both line number and direction
line_info_key = passing['line_info']['ligne'] + '-' + passing['direction']
line_info_key = passing['line_info']['ligne']
if passing.get('direction'):
line_info_key += '-' + passing['direction']
if line_info_key not in passings_by_line:
passings_by_line[line_info_key] = []
passings_by_line[line_info_key].append(passing)