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
// Kind of a hack, but this is the only place I found that guarantees
6181
+
// selected agencies are initialized and that has access to dbindex and username
6182
+
// -- Annie
6183
+
ensureDBSessionInitialized(dbindex, username);
6155
6184
Connectionconnection = makeConnection(dbindex);
6156
6185
Stringquery="";
6157
6186
Statementstmt = null;
6158
6187
6159
-
Map<String,Agencyselect> r = newLinkedHashMap<String,Agencyselect>();
6160
-
// query ="select id,name,defaultid from gtfs_agencies";
6188
+
Map<String,Agencyselect> r = newLinkedHashMap<String,Agencyselect>();
6189
+
6161
6190
query = "SELECT a.id,a.name,a.defaultid,b.hidden,f.feedname,f.startdate,f.enddate FROM gtfs_agencies AS a LEFT OUTER JOIN user_selected_agencies AS b ON (b.username = '"+username+"' AND a.defaultid = b.agency_id) INNER JOIN gtfs_feed_info f ON f.defaultid = a.defaultid ORDER BY name";
0 commit comments