Commit 95c6cc93 authored by 高雅喆's avatar 高雅喆

bug fix

parent a7372f4a
...@@ -759,6 +759,7 @@ def clear_history(device_id=None,user_id=-1): ...@@ -759,6 +759,7 @@ def clear_history(device_id=None,user_id=-1):
redis_key_list = list() redis_key_list = list()
if device_id: if device_id:
redis_key_list.extend(('physical:linucb:device_id:%s','physical:home_recommend:device_id:%s:query_type:1', redis_key_list.extend(('physical:linucb:device_id:%s','physical:home_recommend:device_id:%s:query_type:1',
'physical:linucb:tag_recommend:device_id:%s',
'physical:linucb:topic_recommend:device_id:%s', 'physical:linucb:topic_recommend:device_id:%s',
'physical:linucb:pictorial_recommend:device_id:%s', 'physical:linucb:pictorial_recommend:device_id:%s',
'physical:home_pictorial_recommend:device_id:%s:query_type:1')) 'physical:home_pictorial_recommend:device_id:%s:query_type:1'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment