예제 #1
0
 def get_bus_trip_by_id(self, bus_trip_id):
     return db_session.query(BusTrip).filter_by(id=bus_trip_id).one()
예제 #2
0
 def get_stops(self):
     return db_session.query(Stop).all()
예제 #3
0
from api.live_api import LiveApi
from data.connectdb import db_session
from data.models import Trip

trip = db_session.query(Trip).filter_by(code='dst01').one()

api = LiveApi()
예제 #4
0
 def get_trip_by_code(self, code):
     return db_session.query(Trip).filter_by(code=code).one()
예제 #5
0
 def get_trip_by_id(self, id):
     return db_session.query(Trip).filter_by(id=id).one()
예제 #6
0
 def get_trips(self):
     return db_session.query(Trip).all()
예제 #7
0
 def get_routes(self):
     return db_session.query(RouteTo).all()
예제 #8
0
 def get_services(self):
     return db_session.query(Service).all()