From 45f954d5cb54cf558659a6f860d269d04896aae8 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 10 Feb 2016 14:03:55 +0100 Subject: [PATCH] [bde/credits_duplicates] On traite les plus anciens d'abord --- bde/credits_duplicates.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bde/credits_duplicates.py b/bde/credits_duplicates.py index a96815e..8d32ae2 100755 --- a/bde/credits_duplicates.py +++ b/bde/credits_duplicates.py @@ -107,6 +107,7 @@ def sort_by_blocks(data): l.sort() result = [", ".join([str(i) for i in l]) for l in result] result = list(set(result)) + result.sort(key=lambda x : int(x.split(",")[0])) return result def get_transactions(cur, ids): -- 2.39.2