baichongyang 3 gadi atpakaļ
vecāks
revīzija
960af34a54
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      config.py
  2. 1 1
      video_recall.py

+ 1 - 1
config.py

@@ -160,6 +160,6 @@ class ProductionConfig(BaseConfig):
 
 def set_config():
     #return DevelopmentConfig()
-    # return TestConfig()
+    #return TestConfig()
     # return PreProductionConfig()
     return ProductionConfig()

+ 1 - 1
video_recall.py

@@ -130,7 +130,7 @@ class PoolRecall(object):
                 st_check = time.time()
                 ge = gevent.spawn(self.check_video_counts, video_ids=filtered_result, flow_pool_mapping=video_mapping)
                 ge.join()
-                check_result = ge.get()
+                check_result, error_flag = ge.get()
                 #check_result, error_flag = self.check_video_counts(video_ids=filtered_result, flow_pool_mapping=video_mapping)
                 # 判断错误标记, True为错误
                 if error_flag: