Browse Source

加上公众号gh_id

luojunhui 5 tháng trước cách đây
mục cha
commit
4f0baba4a3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      updatePublishedMsgDaily.py

+ 1 - 1
updatePublishedMsgDaily.py

@@ -425,7 +425,7 @@ def get_article_detail_job(db_client: DatabaseConnector):
             SELECT ghId, appMsgId, MAX(publish_timestamp) AS publish_timestamp 
             FROM {ARTICLE_TABLE} 
             WHERE publish_timestamp > %s 
-            GROUP BY appMsgId
+            GROUP BY ghId, appMsgId
             ) vv 
             ON oav.appMsgId = vv.appMsgId AND oav.ghId = vv.ghId
         SET oav.publish_timestamp = vv.publish_timestamp