Esempio n. 1
0
def get_posts_xueqiu():

    ids = cf.get('user_id', 'xueqiu').split(',')
    return db.select(mysql_table_xueqiu_article, order='publish_time DESC', limit=100) # where='user_id in ({0})'.format(','.join(ids)),
Esempio n. 2
0
def get_posts_licaishi():
    ids = cf.get('user_id', 'licaishi').split(',')
    return db.select(mysql_table_licaishi_viewpoint,  order='publish_time DESC', limit=100) # where='user_id in ({0})'.format(','.join(ids)),