|
@@ -222,7 +222,9 @@ def video_rank_h(df, now_date, now_h, rule_key, param, data_key, notify_backend)
|
|
log_.info('json_data count = {}'.format(len(json_data)))
|
|
log_.info('json_data count = {}'.format(len(json_data)))
|
|
result = request_post(request_url=config_.NOTIFY_BACKEND_updateFallBackVideoList_URL,
|
|
result = request_post(request_url=config_.NOTIFY_BACKEND_updateFallBackVideoList_URL,
|
|
request_data={'videos': json_data})
|
|
request_data={'videos': json_data})
|
|
- if result['code'] == 0:
|
|
|
|
|
|
+ if result is None:
|
|
|
|
+ log_.error('notify backend updateFallBackVideoList fail!')
|
|
|
|
+ elif result['code'] == 0:
|
|
log_.info('notify backend updateFallBackVideoList success!')
|
|
log_.info('notify backend updateFallBackVideoList success!')
|
|
else:
|
|
else:
|
|
log_.error('notify backend updateFallBackVideoList fail!')
|
|
log_.error('notify backend updateFallBackVideoList fail!')
|