1
0
Fork 0

code cleanup

This commit is contained in:
Hugh Rundle 2021-11-28 21:38:28 +11:00
parent f828f36cc5
commit e9bb2a04a4
No known key found for this signature in database
GPG key ID: CD23D6039184286B
7 changed files with 37 additions and 26 deletions

View file

@ -84,6 +84,7 @@ def handle_remote_webfinger(query):
return None
return user
def subscribe_remote_webfinger(query):
"""get subscribe template from other servers"""
template = None
@ -112,6 +113,7 @@ def subscribe_remote_webfinger(query):
return template
def get_edition(book_id):
"""look up a book in the db and return an edition"""
book = models.Book.objects.select_subclasses().get(id=book_id)