示例#1
0
文件: app.py 项目: tonicbupt/account
def before_request():
    g.session = request.environ['xiaomen.session']
    g.current_user = get_current_user()
    #TODO remove
    if g.current_user:
        g.topic_notify = lambda: topic_notify(g.current_user.id)
示例#2
0
文件: api.py 项目: tonicbupt/account
def unread(uid):
    has = topic_notify(int(uid))
    return has