modified + into append

pull/68/head
Mokaddem 2016-08-17 11:26:07 +02:00
parent 23b65eddca
commit dbc164f4e8
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def compute_progression(server, field_name, num_day, url_parsed):
#Check value for all members #Check value for all members
member_set = [] member_set = []
for keyw in server.smembers(redis_progression_name_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 print member_set
member_set.sort(key=lambda tup: tup[1]) member_set.sort(key=lambda tup: tup[1])
if member_set[0] < keyword_increase: if member_set[0] < keyword_increase: