Bugfix view shelfs on detiled page

bugfix datetime in archive mode
This commit is contained in:
Ozzieisaacs
2020-04-26 11:34:10 +02:00
parent 7b789b3701
commit 456550a943
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ def toggle_archived(book_id):
ub.ArchivedBook.book_id == book_id)).first()
if archived_book:
archived_book.is_archived = not archived_book.is_archived
archived_book.last_modified = datetime.datetime.utcnow()
archived_book.last_modified = datetime.utcnow()
else:
archived_book = ub.ArchivedBook(user_id=current_user.id, book_id=book_id)
archived_book.is_archived = True