Compare commits
2 Commits
af1bfc06a5
...
6a2f89d36e
Author | SHA1 | Date | |
---|---|---|---|
|
6a2f89d36e | ||
|
ed03ea4a1c |
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,6 +4,10 @@ db.sqlite3
|
|||||||
dummyusers.json
|
dummyusers.json
|
||||||
*.prof
|
*.prof
|
||||||
|
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
.vscode
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
@ -149,7 +149,7 @@ class BookDetailView(generic.DetailView):
|
|||||||
pass
|
pass
|
||||||
context["imgpath"] = context["object"].path + "/cover.jpg"
|
context["imgpath"] = context["object"].path + "/cover.jpg"
|
||||||
download = Data.objects.get(book=context["object"].id)
|
download = Data.objects.get(book=context["object"].id)
|
||||||
context["download"] = f"{context['object'].path}/{download.name}.{download.format}"
|
context["download"] = f"{context['object'].path}/{download.name}.{download.format.lower()}"
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user