fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
73b6a16
)
fix to pass tests
author
Jan Szejko
<janek37@gmail.com>
Tue, 5 Jun 2018 15:26:04 +0000
(17:26 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 5 Jun 2018 15:26:04 +0000
(17:26 +0200)
src/catalogue/models/book.py
patch
|
blob
|
history
diff --git
a/src/catalogue/models/book.py
b/src/catalogue/models/book.py
index
004c27e
..
7cd6386
100644
(file)
--- a/
src/catalogue/models/book.py
+++ b/
src/catalogue/models/book.py
@@
-233,7
+233,7
@@
class Book(models.Model):
def get_audio_length(self):
from mutagen.mp3 import MP3
total = 0
- for media in self.get_mp3():
+ for media in self.get_mp3()
or ()
:
audio = MP3(media.file.path)
total += audio.info.length
return int(total)