comment and todo cleanup
This commit is contained in:
parent
77841909fe
commit
c0104892c9
|
@ -106,7 +106,6 @@ def handle_outgoing_accept(user, to_follow, request_activity):
|
||||||
def handle_shelve(user, book, shelf):
|
def handle_shelve(user, book, shelf):
|
||||||
''' a local user is getting a book put on their shelf '''
|
''' a local user is getting a book put on their shelf '''
|
||||||
# update the database
|
# update the database
|
||||||
# TODO: this should probably happen in incoming instead
|
|
||||||
models.ShelfBook(book=book, shelf=shelf, added_by=user).save()
|
models.ShelfBook(book=book, shelf=shelf, added_by=user).save()
|
||||||
|
|
||||||
activity = activitypub.get_add(user, book, shelf)
|
activity = activitypub.get_add(user, book, shelf)
|
||||||
|
@ -132,7 +131,6 @@ def handle_shelve(user, book, shelf):
|
||||||
def handle_unshelve(user, book, shelf):
|
def handle_unshelve(user, book, shelf):
|
||||||
''' a local user is getting a book put on their shelf '''
|
''' a local user is getting a book put on their shelf '''
|
||||||
# update the database
|
# update the database
|
||||||
# TODO: this should probably happen in incoming instead
|
|
||||||
row = models.ShelfBook.objects.get(book=book, shelf=shelf)
|
row = models.ShelfBook.objects.get(book=book, shelf=shelf)
|
||||||
row.delete()
|
row.delete()
|
||||||
|
|
||||||
|
|
|
@ -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
|
from html.parser import HTMLParser
|
||||||
|
|
||||||
class InputHtmlParser(HTMLParser):
|
class InputHtmlParser(HTMLParser):
|
||||||
|
|
Loading…
Reference in New Issue