소스 검색

Incorrect way to get long play

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

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

@@ -456,17 +456,6 @@ class Scrobble(TimeStampedModel):
             .last()
         )
 
-    @property
-    def long_play_session_seconds(self) -> Optional[int]:
-        """Look one scrobble back, if it isn't complete,"""
-        if self.long_play_complete is not None:
-            if self.previous:
-                return int(self.playback_position) - int(
-                    self.previous.playback_position
-                )
-            else:
-                return self.playback_position
-
     @property
     def percent_played(self) -> int:
         if not self.media_obj: