liqian hace 2 años
padre
commit
b91bd670a6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      utils.py

+ 2 - 1
utils.py

@@ -437,7 +437,8 @@ class FilterVideos(object):
         # 涉政视频过滤
         if self.app_type not in config_.POLITICAL_RECOMMEND_APP_TYPE_LIST:
             # 增加涉政过滤标识:7
-            types = list(types).append(7)
+            types = list(types)
+            types.append(7)
         request_data = {"appType": self.app_type,
                         "mid": self.mid,
                         "uid": self.uid,