def get_tickets(self, order_by='-last_occurrence_time', limit=50,
                    offset=0):
        return [Ticket(self, row) for row in self.engine.execute(
            self._order(self.tickets.select(), self.tickets, order_by)
            .limit(limit).offset(offset)).fetchall()]
Selects tickets from the database.
dataset/ETHPy150Open getlogbook/logbook/logbook/ticketing.py/SQLAlchemyBackend.get_tickets