mirror of https://github.com/CIRCL/AIL-framework
modified + into append
parent
23b65eddca
commit
dbc164f4e8
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue