frontend tweaks

This commit is contained in:
eneller
2025-03-20 20:53:19 +01:00
parent aa66c06f88
commit c1f813d70c
3 changed files with 13 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ import logging
logger = logging.getLogger(__name__) #TODO configure logging
converter = GBConvert(downloaddir=settings.MEDIA_ROOT)
books = get_all_books()# TODO get from pickle
books = sorted(get_all_books(), key= lambda b: b.title)# TODO get from pickle
gbnetloc = urlparse(allbooks_url).netloc
def index(request: HttpRequest):
@@ -21,6 +21,7 @@ def index(request: HttpRequest):
'http_host': request.META['HTTP_HOST'],
'books': books,
'book_count': len(books),
'allbooks_url': allbooks_url,
}
targetParam = request.GET.get('t', None)