浏览代码

将update_time
修改为 publish_timestamp

luojunhui 7 月之前
父节点
当前提交
6597f01a2d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      updateMinigramInfoDaily.py

+ 2 - 2
updateMinigramInfoDaily.py

@@ -45,9 +45,9 @@ class DailyDataManager(object):
         biz_date_ts = biz_date_midnight.timestamp()
         biz_date_ts = biz_date_midnight.timestamp()
         biz_date_end_ts = biz_date_ts + 24 * 60 * 60 - 1
         biz_date_end_ts = biz_date_ts + 24 * 60 * 60 - 1
         sql2 = f"""
         sql2 = f"""
-        select ContentUrl, wx_sn, updateTime, accountName, title
+        select ContentUrl, wx_sn, publish_timestamp, accountName, title
         from official_articles_v2
         from official_articles_v2
-        where updateTime between {biz_date_ts} and {biz_date_end_ts};
+        where publish_timestamp between {biz_date_ts} and {biz_date_end_ts};
 --         and accountName in (
 --         and accountName in (
 --                         select distinct account_name from account_avg_info_v2
 --                         select distinct account_name from account_avg_info_v2
 --                         );
 --                         );