Explorar o código

加上公众号gh_id

luojunhui hai 9 meses
pai
achega
4f0baba4a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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