X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/191bafa9684b6ead02f17e001dc5fcf3c2e210f6..bd5950ff9004f57d00fe13bb01105cba467a8115:/sercom/subcontrollers/misentregas/__init__.py diff --git a/sercom/subcontrollers/misentregas/__init__.py b/sercom/subcontrollers/misentregas/__init__.py index dfd3a05..8ea647f 100644 --- a/sercom/subcontrollers/misentregas/__init__.py +++ b/sercom/subcontrollers/misentregas/__init__.py @@ -125,8 +125,11 @@ class MisEntregasController(controllers.Controller, identity.SecureResource): """List records in model""" # Grupos en los que el usuario formo parte m = [i.grupo.id for i in Grupo.selectByAlumno(identity.current.user)] - entregador = AlumnoInscripto.selectByAlumno(identity.current.user) - m.append(entregador.id) + try: + entregador = AlumnoInscripto.selectByAlumno(identity.current.user) + m.append(entregador.id) + except: + pass r = cls.select(IN(cls.q.entregadorID, m)) return dict(records=r, name=name, namepl=namepl)