X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/40a56893faa8289299260432e65d1b54e9ae53ed..506d3fe1b455810328d73738ad23230e508f5fe7:/sercom/controllers.py?ds=inline diff --git a/sercom/controllers.py b/sercom/controllers.py index 048a7b5..b16424f 100644 --- a/sercom/controllers.py +++ b/sercom/controllers.py @@ -52,7 +52,7 @@ class Root(controllers.RootController): AND(InstanciaDeEntrega.q.inicio <= now, InstanciaDeEntrega.q.fin > now)).orderBy(InstanciaDeEntrega.q.fin)) # Ultimas N entregas realizadas - entregas = list(Entrega.select(Entrega.q.entregadorID == identity.current.user.id)) + entregas = list(Entrega.select(Entrega.q.entregadorID == identity.current.user.id)[:5]) return dict(instancias_activas=instancias, now=now, entregas=entregas) return dict()