Add notes

This commit is contained in:
Fred Boniface 2023-04-26 11:00:37 +01:00
parent 45baf8a1c3
commit b6c31b85fa
2 changed files with 5 additions and 2 deletions

View File

@ -20,7 +20,7 @@ pis:
- code: 5215
stops: [bri,kyn,olf,bth,ffd,avn,boa,tro,wsb,fro,bru,clc,yvp,tho,yet,cno,mdn,dcw,upw,wey]
- code: 5248
stops: [wey,upw,dcw,mdn,cno,yet,tho,yvp,clc,bru,fro,wsb,tro,boa,avn,ffd,bth,olf,kyn,bri]
stops: [wey,upw,dcw,mdn,cno,yet,tho,yvp,clc,bru,fro,wsb,tro,boa,avn,ffd,bth,olf,kyn,bri] # [reverse,5215]
- code: 5487
stops: [wsm,wnm,wor,yat,nls,psn,bmt,bri,lwh,srd,mtp,rda,cfn,sml,shh,avn,sar,svb]
- code: 5502
@ -28,7 +28,7 @@ pis:
- code: 5513
stops: [cfn,rda,mtp,srd,lwh,bri]
- code: 5523
stops: [fit,srd,lwh,bri]
stops: [fit,srd,lwh,bri] # [reverse,5513]
- code: 5866
stops: [sal,wmn,dmh,wsb,tro,boa,avf,ffd,bth,olf,kyn,bri]
- code: 6067

View File

@ -9,3 +9,6 @@ def load(): # Programatically add a `toc` field to each entry.
except yaml.YAMLError as exc:
print(exc)
return exc
## Do some magic here so that if any pis["pis"]["stops"][0] field contains 'reverse' then get the stops for the code stored in pis["pis"]["stops"][1]
## reverse the stops and store that.