comment and todo cleanup

This commit is contained in:
Mouse Reeve 2020-02-19 00:35:12 -08:00
parent 77841909fe
commit c0104892c9
2 changed files with 1 additions and 3 deletions

View file

@ -106,7 +106,6 @@ def handle_outgoing_accept(user, to_follow, request_activity):
def handle_shelve(user, book, shelf):
''' a local user is getting a book put on their shelf '''
# update the database
# TODO: this should probably happen in incoming instead
models.ShelfBook(book=book, shelf=shelf, added_by=user).save()
activity = activitypub.get_add(user, book, shelf)
@ -132,7 +131,6 @@ def handle_shelve(user, book, shelf):
def handle_unshelve(user, book, shelf):
''' a local user is getting a book put on their shelf '''
# update the database
# TODO: this should probably happen in incoming instead
row = models.ShelfBook.objects.get(book=book, shelf=shelf)
row.delete()

View file

@ -1,4 +1,4 @@
''' we're solving fizzbuzz with a little help from the web '''
''' html parser to clean up incoming text from unknown sources '''
from html.parser import HTMLParser
class InputHtmlParser(HTMLParser):