HDR Progress: get_report_contract_body function

avatar
(Edited)

As you may already know, I work on this stuff at my leisure.

Behold fruit of this latest work

image.png

Now, things may move like a slow moving glacier but the thing about that.

Once a glacier get's moving, it's hard to stop...



So, yes my work on the Hive Downvote Rewards project continues as such...



Piece by Piece until all are complete.

Here is the code: (Excerpt)

def get_report_contract_body(op,cat_string):
    """ assemble body for moderation report contract reply"""
    reporter = op['author']
    parentlink = '@'+op['parent_author']+'/'+op['parent_permlink']
    link = get_hive_engine_hc_hot_link(reporter, 'HDR','1',parentlink)
    body = 'Thank you for submitting a Hive Downvote Rewards Moderation Report! \n\n' \
           'Please, use the following Hive~~Connect~~Signer link to finalize report contract. \n\n' \
           'Thank you for reporting this abuse, @{}.\n{}\n\n' \
           'Check us out on the following link!\n[HDR Discord]({})\n\n' \
           '[Hivesigner Link]({})'.format(
               reporter, cat_string, cfg.DISCORD_INVITE,link)
    return body

def reply_moderation_report(op,body): #op is the reporter's comment.
    rep = hive.post('', body,
            reply_identifier=op['author']+'/'+op['permlink'],
            community='HDR', parse_body=True,
            author='hive-dr')
    return construct_authorperm(rep['operations'][0][1])

I still have a way to go but but I am setting aside brain power when I can to continue this endeavor.

Thanks for the votes that provide the motivational energy to press forward.



0
0
0.000
2 comments
avatar

Errr I meant HiveSigner. Oh and tomfoolery should totally be a category. Lol

0
0
0.000
avatar

So, we'd have to use HiveSigner for each report?

0
0
0.000