From 58ba366cc5fde573f50c2a8d2231fce60eff03cf Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Thu, 19 Oct 2017 15:27:33 -0200 Subject: [PATCH] =?UTF-8?q?Retira=20c=C3=B3digo=20duplicado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luciano Almeida --- sapl/legacy/migration.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sapl/legacy/migration.py b/sapl/legacy/migration.py index 5200e6c38..b9e7765f4 100644 --- a/sapl/legacy/migration.py +++ b/sapl/legacy/migration.py @@ -163,11 +163,6 @@ def iter_sql_records(sql, db): yield record -def get_last_value(model): - last_value = model.objects.all().aggregate(Max('pk')) - return last_value['pk__max'] or 0 - - def save_relation(obj, nome_campo='', problema='', descricao='', eh_stub=False, critico=False): link = ProblemaMigracao(