Browse Source

image_cnt 强制由numpy转化为int类型

liyuyi@c-top.com.cn 4 years ago
parent
commit
11e931d4fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ai_time_task_creative_handler.py

+ 1 - 1
ai_time_task_creative_handler.py

@@ -194,7 +194,7 @@ class AiCheckAndUpTOFullCreative(tornado.web.RequestHandler):
             limit 1
             """ % account_id
             df = pd.read_sql(sql, engine)
-            image_cnt = df['image_cnt'].values[0]
+            image_cnt = int(df['image_cnt'].values[0])
 
             # 3-1 从 ctop_kuaishou_creative 获取当天该账户到此刻 已经创建的创意个数
             video_cnt = 0