feat(backend): Add Rich for Development Logging

This commit is contained in:
hay-kot
2021-08-07 15:13:42 -08:00
parent 9386cc320b
commit cb85b14e01
18 changed files with 70 additions and 60 deletions

View File

@@ -47,7 +47,6 @@ async def delete_comment(
):
""" Delete comment from the Database """
comment: CommentOut = db.comments.get(session, id)
print(current_user.id, comment.user.id, current_user.admin)
if current_user.id == comment.user.id or current_user.admin:
db.comments.delete(session, id)
return