access_time = datetime.now()
last_books = request.session.get("wiki_last_books", {})
access_time = datetime.now()
last_books = request.session.get("wiki_last_books", {})
- last_books[slug, chunk.slug] = {
- 'time': access_time,
+ last_books[reverse(editor, args=[chunk.book.slug, chunk.slug])] = {
+ 'time': mktime(access_time.timetuple()),
access_time = datetime.now()
last_books = request.session.get("wiki_last_books", {})
last_books[slug, chunk.slug] = {
access_time = datetime.now()
last_books = request.session.get("wiki_last_books", {})
last_books[slug, chunk.slug] = {