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

This commit is contained in:
ajurna committed 2021-04-08 14:07:41 +01:00
1 parent b96deb3512
commit b19d3aeaa2
3 files changed
+57 -32

No files matched your search

+1
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)