def read_star():
db = sqlite3.connect(get_project_settings()['DATABASE_POSITION'])
db.row_factory = dict_factory
cursor = db.cursor()
cursor.execute('select * from pixiv_item where star is not null ORDER BY -star')
global star_array, unstar
star_array = cursor.fetchall()
评论列表
文章目录