modified + into append

This commit is contained in:
Mokaddem 2016-08-17 11:26:07 +02:00
parent 23b65eddca
commit dbc164f4e8

View file

@ -81,7 +81,7 @@ def compute_progression(server, field_name, num_day, url_parsed):
#Check value for all members
member_set = []
for keyw in server.smembers(redis_progression_name_set):
member_set += (keyw, int(server.hget(redis_progression_name, keyw)))
member_set.append((keyw, int(server.hget(redis_progression_name, keyw))))
print member_set
member_set.sort(key=lambda tup: tup[1])
if member_set[0] < keyword_increase: