Just order by updated_at for inbound_numbers

This commit is contained in:
Ken Tsang
2017-08-16 16:28:21 +01:00
parent 902b28e00f
commit 9ab1dfd6d0

View File

@@ -4,7 +4,7 @@ from app.models import InboundNumber
def dao_get_inbound_numbers(): def dao_get_inbound_numbers():
return InboundNumber.query.order_by(InboundNumber.updated_at, InboundNumber.number).all() return InboundNumber.query.order_by(InboundNumber.updated_at).all()
def dao_get_available_inbound_numbers(): def dao_get_available_inbound_numbers():