|
@@ -6,7 +6,7 @@ from ._const import DecodeTaskConst
|
|
|
|
|
|
|
|
|
|
|
|
|
class ArticlesDecodeTaskMapper(DecodeTaskConst):
|
|
class ArticlesDecodeTaskMapper(DecodeTaskConst):
|
|
|
- DECODE_TASK_QUEUE = "long_articles_decode_task_detail"
|
|
|
|
|
|
|
+ DECODE_TASK_QUEUE = "long_articles_decode_tasks"
|
|
|
INNER_DECODE_CREATE_STATE = "long_articles_inner_decode_create_state"
|
|
INNER_DECODE_CREATE_STATE = "long_articles_inner_decode_create_state"
|
|
|
|
|
|
|
|
def __init__(self, pool: DatabaseManager):
|
|
def __init__(self, pool: DatabaseManager):
|
|
@@ -191,7 +191,8 @@ class InnerArticlesDecodeTaskMapper(ArticlesDecodeTaskMapper):
|
|
|
date_string = self.InnerDecodeCreate.DEFAULT_GOOD_READ_DATE
|
|
date_string = self.InnerDecodeCreate.DEFAULT_GOOD_READ_DATE
|
|
|
query = """
|
|
query = """
|
|
|
SELECT title, source_id, wx_sn, cover_img_url FROM long_articles_good_read_article WHERE dt = %s
|
|
SELECT title, source_id, wx_sn, cover_img_url FROM long_articles_good_read_article WHERE dt = %s
|
|
|
- ORDER by max_read_rate DESC;
|
|
|
|
|
|
|
+ ORDER by max_read_rate DESC
|
|
|
|
|
+ ;
|
|
|
"""
|
|
"""
|
|
|
return await self.pool.async_fetch(query=query, params=(date_string,))
|
|
return await self.pool.async_fetch(query=query, params=(date_string,))
|
|
|
|
|
|