From 43bb085667449bc870af560d4bd922c2acf4c495 Mon Sep 17 00:00:00 2001 From: Roland Haroutiounian Date: Wed, 1 Jul 2015 16:13:27 +0200 Subject: [PATCH] =?UTF-8?q?[EmField]=20Modification=20AddColumn=20+=20test?= =?UTF-8?q?=20ranked=5Fin=20dans=20Components=20repass=C3=A9=20temporairem?= =?UTF-8?q?ent=20=C3=A0=20-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EditorialModel/components.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EditorialModel/components.py b/EditorialModel/components.py index a10d6af..562d521 100644 --- a/EditorialModel/components.py +++ b/EditorialModel/components.py @@ -175,8 +175,8 @@ class EmComponent(object): dbe = cls.db_engine() conn = dbe.connect() - kwargs['rank'] = cls.get_max_rank(kwargs[cls.ranked_in]) + 1 #Warning !!! - + #kwargs['rank'] = cls.get_max_rank(kwargs[cls.ranked_in]) + 1 #Warning !!! + kwargs['rank'] = -1 table = sql.Table(cls.table, sqlutils.meta(dbe)) req = table.insert(kwargs)