feat: basic table display
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user