Adds get_hidden_claim_comments handle & activates abandon_comment func
This commit is contained in:
parent
c56562e7ea
commit
2b7e1df091
1 changed files with 10 additions and 9 deletions
|
@ -28,23 +28,23 @@ def ping(*args):
|
||||||
|
|
||||||
|
|
||||||
def handle_get_channel_from_comment_id(app, kwargs: dict):
|
def handle_get_channel_from_comment_id(app, kwargs: dict):
|
||||||
with app['reader'] as conn:
|
return get_channel_id_from_comment_id(app['reader'], **kwargs)
|
||||||
return get_channel_id_from_comment_id(conn, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def handle_get_comment_ids(app, kwargs):
|
def handle_get_comment_ids(app, kwargs):
|
||||||
with app['reader'] as conn:
|
return get_comment_ids(app['reader'], **kwargs)
|
||||||
return get_comment_ids(conn, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def handle_get_claim_comments(app, kwargs):
|
def handle_get_claim_comments(app, kwargs):
|
||||||
with app['reader'] as conn:
|
return get_claim_comments(app['reader'], **kwargs)
|
||||||
return get_claim_comments(conn, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def handle_get_comments_by_id(app, kwargs):
|
def handle_get_comments_by_id(app, kwargs):
|
||||||
with app['reader'] as conn:
|
return get_comments_by_id(app['reader'], **kwargs)
|
||||||
return get_comments_by_id(conn, **kwargs)
|
|
||||||
|
|
||||||
|
def handle_get_hidden_claim_comments(app, kwargs):
|
||||||
|
return get_hidden_claim_comments(app['reader'], **kwargs)
|
||||||
|
|
||||||
|
|
||||||
async def handle_create_comment(app, params):
|
async def handle_create_comment(app, params):
|
||||||
|
@ -66,13 +66,14 @@ async def handle_hide_comment(app, params):
|
||||||
METHODS = {
|
METHODS = {
|
||||||
'ping': ping,
|
'ping': ping,
|
||||||
'get_claim_comments': handle_get_claim_comments,
|
'get_claim_comments': handle_get_claim_comments,
|
||||||
|
'get_hidden_claim_comments': handle_get_hidden_claim_comments,
|
||||||
'get_comment_ids': handle_get_comment_ids,
|
'get_comment_ids': handle_get_comment_ids,
|
||||||
'get_comments_by_id': handle_get_comments_by_id,
|
'get_comments_by_id': handle_get_comments_by_id,
|
||||||
'get_channel_from_comment_id': handle_get_channel_from_comment_id,
|
'get_channel_from_comment_id': handle_get_channel_from_comment_id,
|
||||||
'create_comment': handle_create_comment,
|
'create_comment': handle_create_comment,
|
||||||
'delete_comment': handle_delete_comment,
|
'delete_comment': handle_delete_comment,
|
||||||
|
'abandon_comment': handle_delete_comment,
|
||||||
'hide_comment': handle_hide_comment,
|
'hide_comment': handle_hide_comment,
|
||||||
# 'abandon_comment': handle_delete_comment,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue