In the ConnectedRoute constructor:
| self.groupname=fields[3].replace("'","''") |
This appears to be there to play nice with inserting the field into the SQL file. I presume
' is an escape character.
However, there are unintended side effects in highwaydatastats.log:
TunEnv (Tunel d''Envarlira): 2.55 mi (AND TunEnv only), rather than
TunEnv (Tunel d'Envarlira): 2.55 mi (AND TunEnv only)
Probably better to perform this replacement whengroupname is written to the SQL file, rather than before.
In the ConnectedRoute constructor:
DataProcessing/siteupdate/python-teresco/siteupdate.py
Line 881 in 5db8dfa
This appears to be there to play nice with inserting the field into the SQL file. I presume
'is an escape character.However, there are unintended side effects in highwaydatastats.log:
TunEnv (Tunel d''Envarlira): 2.55 mi (AND TunEnv only), rather thanTunEnv (Tunel d'Envarlira): 2.55 mi (AND TunEnv only)Probably better to perform this replacement when
groupnameis written to the SQL file, rather than before.