fixed bug where if page is missing it will regenerate page records and serve it correctly.

This commit is contained in:
2021-04-08 14:07:41 +01:00
parent b96deb3512
commit b19d3aeaa2
3 changed files with 57 additions and 32 deletions

View File

@@ -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)