Skip to content

Commit

Permalink
fix warning msg for loop ids and names
Browse files Browse the repository at this point in the history
  • Loading branch information
ztatlock committed Jun 2, 2024
1 parent a5258e2 commit e564eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _bin/route-db.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def check_route(route):
# check id and name conventions for type
if route['type'] == 'Loop':
if not LOOP_ID_RE.search(route['id']):
warn_rc(route, f"Loop route ids should end with '-loop'")
warn_rc(route, f"Loop route ids should end with '-loop' or '-loop-NN'")
if not LOOP_NAME_RE.search(route['name']):
warn_rc(route, f"Loop route name should end with ' Loop'")
warn_rc(route, f"Loop route name should end with ' Loop' or ' Loop NN'")
if route['type'] == 'OB':
if not route['id'].endswith('-ob'):
warn_rc(route, f"OB route ids should end with '-ob'")
Expand Down

0 comments on commit e564eee

Please sign in to comment.