|
@@ -53,7 +53,11 @@ class CrawlerChannelAccountVideos:
|
|
|
"""
|
|
|
get channel account list from database
|
|
|
"""
|
|
|
- sql = f"""select account_id, max_cursor from sph_account_for_videos where status = {const.CHANNEL_ACCOUNT_GOOD_STATUS};"""
|
|
|
+ sql = f"""
|
|
|
+ select account_id, max_cursor
|
|
|
+ from sph_account_for_videos
|
|
|
+ where status = {const.CHANNEL_ACCOUNT_GOOD_STATUS}
|
|
|
+ order by max_cursor;"""
|
|
|
account_list = self.db_client.fetch(query=sql, cursor_type=DictCursor)
|
|
|
return account_list
|
|
|
|