[scrobbles] Refactor run time sec to be blank by default
This commit is contained in:
@ -205,7 +205,7 @@ class VideoGame(LongPlayScrobblableMixin):
|
||||
|
||||
@property
|
||||
def seconds_for_completion(self) -> int:
|
||||
completion_time = self.run_time_ticks
|
||||
completion_time = self.run_time_seconds
|
||||
if not completion_time:
|
||||
# Default to 10 hours, why not
|
||||
completion_time = 10 * 60 * 60
|
||||
@ -237,7 +237,7 @@ class VideoGame(LongPlayScrobblableMixin):
|
||||
if self.igdb_id:
|
||||
load_game_data_from_igdb(self.id, self.igdb_id)
|
||||
|
||||
if (not self.run_time_ticks or force_update) and self.main_story_time:
|
||||
if force_update and self.main_story_time:
|
||||
self.run_time_seconds = self.main_story_time
|
||||
self.save(update_fields=["run_time_seconds"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user