# v4 mocks: aerodrome list with saved pinned (?filter=on hides them), ATO review form. Sample data only. h=open('d2badges.html').read() head=h.split('.*?','Mock',head) CSS='''''' SAVED=[('FACT','Cape Town Intl','Home'),('FASH','Stellenbosch','Saved'),('FAGG','George','Saved'),('FAOH','Oudtshoorn','Saved')] ALL=[('FAAB','Alexander Bay','Northern Cape'),('FABE','Bhisho','Eastern Cape'),('FABL','Bloemfontein','Free State'),('FACV','Calvinia','Northern Cape'),('FADN','Durban (Virginia)','KZN'),('FAEL','East London','Eastern Cape')] ad=lambda i,n,s:f'
{i}{n}{s}
' aero=head.replace('',CSS+'')+'''
Aerodromes
Search ICAO or name
GOCautionFuelTar runway
Saved
'''+''.join(ad(*a) for a in SAVED)+'''
All aerodromes
'''+''.join(ad(*a) for a in ALL)+'''
''' open('aero.html','w').write(aero) rev=head.replace('',CSS+'')+'''
Review Cape Town Flight Training
Your review is anonymous. This is mandatory and cannot be turned off. Your name and email are never shown with it.
★★★★☆
What was training like? Instructors, aircraft, admin, value.
e.g. 185 000
PPLCPLNightIRInstr.
Month / Yeare.g. 03 / 2025
One review per pilot per ATO. You can edit yours later.
''' open('review.html','w').write(rev);print('ok')