async_mysql_utils.py 351 B

1234567891011121314
  1. from typing import List, Dict
  2. async def get_top_article_title_list(pool) -> List[Dict]:
  3. query = f"""
  4. select distinct title, source_id
  5. from datastat_sort_strategy
  6. where produce_plan_name = %s and source_id is not null;
  7. """
  8. return await pool.async_fetch(query=query, params=("TOP100",))
  9. async def get():
  10. pass