From 2c78ffb5988eb53bc7b6dd221f9da5ebdf36067c Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 27 Jan 2007 05:50:05 +0000 Subject: [PATCH] =?utf8?q?Bugfix.=20Faltaba=20una=20condici=C3=B3n=20en=20?= =?utf8?q?los=20JOIN=20ordenados.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sercom/model.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sercom/model.py b/sercom/model.py index 38fb924..7354509 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -284,7 +284,8 @@ class Enunciado(SQLObject, ByObject): #{{{ self.__tareas = tuple(Tarea.select( AND( Tarea.q.id == enunciado_tarea_t.tarea_id, - Enunciado.q.id == enunciado_tarea_t.enunciado_id + Enunciado.q.id == enunciado_tarea_t.enunciado_id, + Enunciado.q.id == self.id ), clauseTables=(enunciado_tarea_t, Enunciado.sqlmeta.table), orderBy=enunciado_tarea_t.orden, @@ -393,7 +394,8 @@ class InstanciaDeEntrega(SQLObject, ByObject): #{{{ self.__tareas = tuple(Tarea.select( AND( Tarea.q.id == instancia_tarea_t.tarea_id, - InstanciaDeEntrega.q.id == instancia_tarea_t.instancia_id + InstanciaDeEntrega.q.id == instancia_tarea_t.instancia_id, + InstanciaDeEntrega.q.id == self.id, ), clauseTables=(instancia_tarea_t, InstanciaDeEntrega.sqlmeta.table), orderBy=instancia_tarea_t.orden, -- 2.43.0