Replace database methods with peewee ORM #39

Merged
osilkin98 merged 26 commits from orm-rewrite into master 2020-04-03 23:40:43 +02:00
Showing only changes of commit 75c8f82072 - Show all commits

View file

@ -187,6 +187,7 @@ async def handle_edit_comment(app, comment: str = None, comment_id: str = None,
return get_comment(comment_id) return get_comment(comment_id)
# TODO: retrieve stake amounts for each channel & store in db
def handle_create_comment(app, comment: str = None, claim_id: str = None, def handle_create_comment(app, comment: str = None, claim_id: str = None,
parent_id: str = None, channel_id: str = None, channel_name: str = None, parent_id: str = None, channel_id: str = None, channel_name: str = None,
signature: str = None, signing_ts: str = None) -> dict: signature: str = None, signing_ts: str = None) -> dict: