feat: basic table display

This commit is contained in:
eneller
2025-03-16 13:12:17 +01:00
parent 677e85a0f7
commit 52998fa280
9 changed files with 78 additions and 36 deletions

View File

@@ -19,10 +19,12 @@ from django.contrib import admin
from django.urls import path
from django.http import HttpRequest, HttpResponse
from django.shortcuts import render, redirect
from epub2go.convert import get_all_books, GBConvert, Book
def root(request:HttpRequest):
title = 'epub2go'
targetParam = request.GET.get('t', None)
books = get_all_books()
if targetParam is not None:
getEpub(targetParam)
return render(request, 'index.html', locals())
@@ -33,6 +35,7 @@ urlpatterns = [
]
def getEpub(param):
print(param)
# TODO validate / sanitize input
# TODO check for existing file and age
# TODO download