mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
fixed bug where if page is missing it will regenerate page records and serve it correctly.
This commit is contained in:
@@ -301,6 +301,7 @@ def read_comic(request, comic_selector):
|
||||
except Directory.DoesNotExist:
|
||||
return HttpResponse(status=404)
|
||||
book = get_object_or_404(ComicBook, selector=selector)
|
||||
|
||||
pages = ComicPage.objects.filter(Comic=book)
|
||||
|
||||
status, _ = ComicStatus.objects.get_or_create(comic=book, user=request.user)
|
||||
|
||||
Reference in New Issue
Block a user