def run(conn_mgr, input, **params):
    result = root.run(conn_mgr, input, **params)
    result = ads.run(conn_mgr, result)
    result = replies.run(conn_mgr, result)
    result = reactions.run(conn_mgr, result)
    set_types(result["items"])
    return result
def run(conn_mgr, input, **params):
    result = club_last_week.run(conn_mgr, input, **params)
    result = replies.run(conn_mgr, result)
    result = reactions.run(conn_mgr, result)
    items = result["items"]
    set_score(items)
    set_types(items)
    items = sorted(items, key=lambda x: x["score"], reverse=True)
    return {"items": items}
def run(conn_mgr, input, **params):
    if addressPattern.match(params["id"]):
        result = single_address.run(conn_mgr, input, **params)
    else:
        result = single.run(conn_mgr, input, **params)
    result = replies.run(conn_mgr, result)
    result = reactions.run(conn_mgr, result)
    set_types(result["items"])
    return result
def run(conn_mgr, input, **params):
    ids = params["id"]
    if isinstance(ids, str):
        ids = [ids]
    address_ids = [id for id in ids if addressPattern.match(id)]
    token_ids = [id for id in ids if not addressPattern.match(id)]
    address_result = notifications_address.run(conn_mgr, input, id=address_ids)
    token_result = notifications.run(conn_mgr, input, id=token_ids)
    result = {
        "items":
        sorted(address_result["items"] + token_result["items"],
               key=lambda x: x["created_at"],
               reverse=True)
    }
    result = replies.run(conn_mgr, result)
    result = reactions.run(conn_mgr, result)
    set_types(result["items"])
    return result
def run(conn_mgr, input, **params):
    result = thread.run(conn_mgr, input, **params)
    result = reactions.run(conn_mgr, result)
    set_types(result["items"])
    return result
def run(conn_mgr, input, **params):
    result = channel_feed.run(conn_mgr, input, **params)
    result = replies.run(conn_mgr, result)
    result = reactions.run(conn_mgr, result)
    return result
def run(conn_mgr, input, **params):
    result = club_multiple.run(conn_mgr, input, **params)
    result = replies.run(conn_mgr, result)
    result = reactions.run(conn_mgr, result)
    set_types(result["items"])
    return result
Example #8
0
def run(conn_mgr, input, **params):
    result = nocoiners_simple.run(conn_mgr, input, **params)
    result = replies.run(conn_mgr, result, nocoiners=True)
    result = reactions.run(conn_mgr, result, nocoiners=True)
    set_types(result["items"])
    return result