liqian 2 years ago
parent
commit
17ad40f18c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      recommend.py

+ 4 - 1
recommend.py

@@ -818,7 +818,10 @@ def special_mid_recommend(request_id, mid, uid, app_type, size,
 def get_special_mid_list():
     redis_helper = RedisHelper()
     special_mid_list = redis_helper.get_data_from_set(key_name=config_.KEY_NAME_SPECIAL_MID)
-    return special_mid_list
+    if special_mid_list:
+        return special_mid_list
+    else:
+        return []
 
 
 if __name__ == '__main__':