Add counter on fields

This commit is contained in:
Raphaël Vinot 2016-01-23 12:13:54 +01:00
parent 5ef2a49702
commit 5106f89bc9

View file

@ -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'))