fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95bbe74
)
Fix volume updater.
author
Radek Czajka
<rczajka@rczajka.pl>
Thu, 29 Jul 2021 07:39:27 +0000
(09:39 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Thu, 29 Jul 2021 07:39:27 +0000
(09:39 +0200)
src/archive/views.py
patch
|
blob
|
history
diff --git
a/src/archive/views.py
b/src/archive/views.py
index
6ae2ef6
..
1d4341e
100644
(file)
--- a/
src/archive/views.py
+++ b/
src/archive/views.py
@@
-321,7
+321,7
@@
def book_youtube_volume(request, aid):
audiobook.youtube_volume = new_vol
audiobook.save()
audiobook.youtube_volume = new_vol
audiobook.save()
- for a in models.Audiobook.objects.filter(youtube_volume=cur_vol, index__gt=audiobook.index).order_by('index'):
+ for a in models.Audiobook.objects.filter(
slug=slug,
youtube_volume=cur_vol, index__gt=audiobook.index).order_by('index'):
if a.youtube_volume != cur_vol:
break
a.youtube_volume = new_vol
if a.youtube_volume != cur_vol:
break
a.youtube_volume = new_vol