From 5106f89bc9092b6ac71862b5e131f954cfaf1232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sat, 23 Jan 2016 12:13:54 +0100 Subject: [PATCH] Add counter on fields --- bin/import.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/import.py b/bin/import.py index c15b87b..6c9b7b8 100644 --- a/bin/import.py +++ b/bin/import.py @@ -25,6 +25,7 @@ if args.f is not None: for element in elements: try: r.sadd('e:'+fields[i], element) + r.zincrby('t:'+fields[i], element) # ehash = hashlib.md5() ehash.update(element.encode('utf-8'))