예제 #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