1
0
Fork 0

code cleanup

This commit is contained in:
Hugh Rundle 2021-11-20 19:19:51 +11:00
parent b406a03533
commit a3270551f9
No known key found for this signature in database
GPG key ID: CD23D6039184286B
4 changed files with 6 additions and 2 deletions

View file

@ -54,6 +54,7 @@ class CreateStatus(View):
data = {"book": book}
return TemplateResponse(request, "compose.html", data)
# pylint: disable=too-many-branches
def post(self, request, status_type, existing_status_id=None):
"""create status of whatever type"""
created = not existing_status_id