diff --git a/app/datastore/AgencyTx.java b/app/datastore/AgencyTx.java index b3494750..c576e53b 100644 --- a/app/datastore/AgencyTx.java +++ b/app/datastore/AgencyTx.java @@ -217,12 +217,14 @@ public LocalDate[] run(String id, ScheduleException ex) { }); tripCountByCalendar = getMap("tripCountByCalendar"); - Bind.histogram(trips, tripCountByCalendar, new Fun.Function2() { + BindUtils.multiHistogram(trips, tripCountByCalendar, new Fun.Function2() { @Override - public String run(String key, Trip trip) { - // TODO Auto-generated method stub - return trip.calendarId; + public String[] run(String key, Trip trip) { + if (trip.calendarId == null) + return new String[] {}; + else + return new String[] { trip.calendarId }; } }); diff --git a/app/models/transit/TripPattern.java b/app/models/transit/TripPattern.java index 481d780a..425c8789 100755 --- a/app/models/transit/TripPattern.java +++ b/app/models/transit/TripPattern.java @@ -53,6 +53,8 @@ public class TripPattern extends Model implements Cloneable, Serializable { // if true, use straight-line rather than shape-based distances public boolean useStraightLineDistances; + public boolean useFrequency; + public String routeId; public String agencyId; diff --git a/app/views/Admin/accounts.html b/app/views/Admin/accounts.html index 1fd4c1e0..dcc2bac4 100755 --- a/app/views/Admin/accounts.html +++ b/app/views/Admin/accounts.html @@ -118,7 +118,7 @@