Example #1
0
def adm_get_post():

    data = {}
    post_id = request.argget.all('post_id')
    get_post_pr(post_id=post_id, is_admin=True)

    return data
Example #2
0
def get_post(post_id=None):

    if not post_id:
        post_id = request.argget.all('post_id')
    post_pv(post_id)
    data = get_post_pr(post_id=post_id)
    return data
Example #3
0
File: post.py Project: dick7/osroom
def get_post(post_id=None):

    if not post_id:
        post_id = request.argget.all('post_id')

    sid = request.cookies["session"]
    post_pv.apply_async(kwargs={"post_id": post_id, "sid": sid})
    data = get_post_pr(post_id=post_id)
    return data
Example #4
0
def get_post():

    post_id = request.argget.all('post_id')
    post_pv(post_id)
    data = get_post_pr(post_id=post_id)
    return data