소스 검색

[scrobbles] Fix if past seconds is zero

Colin Powell 8 달 전
부모
커밋
b97aa8936e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      vrobbler/apps/scrobbles/models.py

+ 1 - 0
vrobbler/apps/scrobbles/models.py

@@ -1246,6 +1246,7 @@ class Scrobble(TimeStampedModel):
 
         # Set our playback seconds, and calc long play seconds
         self.playback_position_seconds = seconds_elapsed
+        past_seconds = 0
         if self.previous:
             past_seconds = self.previous.long_play_seconds