コード例 #1
0
    minimum_vote_threshold = conf_setup["minimum_vote_threshold"]
    comment_vote_divider = conf_setup["comment_vote_divider"]
    comment_vote_timeout_h = conf_setup["comment_vote_timeout_h"]

    member_accounts = memberStorage.get_all_accounts()

    nobroadcast = False
    # nobroadcast = True

    upvote_counter = {}

    for m in member_accounts:
        upvote_counter[m] = 0

    # print("%d members in list" % len(member_accounts))
    postTrx = PostsTrx(db)

    print("Upvote posts/comments")
    start_timestamp = datetime(2018, 12, 14, 9, 18, 20)

    if True:
        max_batch_size = 50
        threading = False
        wss = False
        https = True
        normal = False
        appbase = True
    elif False:
        max_batch_size = None
        threading = True
        wss = True
コード例 #2
0
    rshares_per_cycle = conf_setup["rshares_per_cycle"]
    minimum_vote_threshold = conf_setup["minimum_vote_threshold"]
    comment_vote_divider = conf_setup["comment_vote_divider"]
    comment_footer = conf_setup["comment_footer"]

    member_accounts = memberStorage.get_all_accounts()
    print("%d members in list" % len(member_accounts))

    nobroadcast = False
    # nobroadcast = True

    member_data = {}
    for m in member_accounts:
        member_data[m] = Member(memberStorage.get(m))

    postTrx = PostsTrx(db)

    print("stream new posts")

    if True:
        max_batch_size = 50
        threading = False
        wss = False
        https = True
        normal = False
        appbase = True
    elif False:
        max_batch_size = None
        threading = True
        wss = True
        https = False