You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
service_id is not necessarily numeric (example: 'weekday')
FIX:
Switch to varchar(50) in sql files where service_id defined
implement following diff in build_indices.py:
33c33
< service_id = int(row[0])
service_id = row[0]
36c36
< sql = "UPDATE calendar SET start_date_timestamp=%d, end_date_timestamp=%d WHERE service_id=%d AND start_date='%s' AND end_date='%s'" % (convert_date_string_to_timestamp(start_date), convert_date_string_to_timestamp(end_date), service_id, start_date, end_date)
sql = "UPDATE calendar SET start_date_timestamp=%d, end_date_timestamp=%d WHERE service_id='%s' AND start_date='%s' AND end_date='%s'" % (convert_date_string_to_timestamp(start_date), convert_date_string_to_timestamp(end_date), service_id, start_date, end_date)
52c52
< service_id = int(row[0])
service_id = row[0]
54c54
< sql = "UPDATE calendar_dates SET date_timestamp=%d WHERE service_id=%d AND date='%s'" % (convert_date_string_to_timestamp(date), service_id, date)
sql = "UPDATE calendar_dates SET date_timestamp=%d WHERE service_id='%s' AND date='%s'" % (convert_date_string_to_timestamp(date), service_id, date)
The text was updated successfully, but these errors were encountered:
service_id is not necessarily numeric (example: 'weekday')
FIX:
33c33
< service_id = int(row[0])
The text was updated successfully, but these errors were encountered: