Przeglądaj źródła

加上公众号gh_id

luojunhui 3 miesięcy temu
rodzic
commit
4f0baba4a3
1 zmienionych plików z 1 dodań i 1 usunięć
  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