Open answerquest opened 5 years ago
Note: probably because they're both using the same code, location_editor.py
is also having the same issue.
for me a quick workaround was to use sorted instead of sort
diff --git a/transitfeed/trip.py b/transitfeed/trip.py
index ae9b374..33ebcf6 100755
--- a/transitfeed/trip.py
+++ b/transitfeed/trip.py
@@ -764,4 +764,4 @@ class Trip(GtfsObjectBase):
def SortListOfTripByTime(trips):
- trips.sort(key=GetStartTime)
+ trips = sorted(trips, key=lambda trip: trip.GetStartTime())
I just git-cloned the transitfeed repo and ran ScheduleViewer (after making the api key hotfix mentioned in #467 ). There seems to be an error happening when we click on any route:
It looks like a variable/object
GetStartTime
is being used before being defined. This doesn't seem like a missing module error or so.