A Wretch Like You avatar

HDR Progress: get_report_contract_body function

anthonyadavisii

Published: 12 Nov 2020 › Updated: 12 Nov 2020HDR Progress: get_report_contract_body function

HDR Progress: get_report_contract_body function

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.

Leave HDR Progress: get_report_contract_body function to:

Written by

Jack of all trades IT Pro, Flag Enthusiast, Sovereign Grace, USMC, Technically a Cyborg

Read more #hive-145452 posts


Best Posts From A Wretch Like You

We have not curated any of anthonyadavisii's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From A Wretch Like You