Skip to content
Permalink
Browse files

flake8

  • Loading branch information
Kwpolska committed Apr 3, 2015
1 parent cb4d6aa commit aceae8d18c65bbc8272d0ea229fd0c3c3f665620
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/post.py
@@ -604,7 +604,7 @@ def reading_time(self):
embeddables = [".//img", ".//picture", ".//video", ".//audio", ".//object", ".//iframe"]
media_time = 0
for embedded in embeddables:
media_time += (len(markup.findall(embedded)) * 0.33) # +20 seconds
media_time += (len(markup.findall(embedded)) * 0.33) # +20 seconds
self._reading_time = int(ceil((words / words_per_minute) + media_time)) or 1
return self._reading_time

0 comments on commit aceae8d

Please sign in to comment.