瀏覽代碼

[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