X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/40a56893faa8289299260432e65d1b54e9ae53ed..0b7fa756174b1d0014b030c0152e0be7f23c4fd4:/sercom/controllers.py 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()