From 1e84497c85d940a762f2d0acaed4afd149330b6b Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 1 Dec 2023 14:00:24 +0100 Subject: [PATCH] Actually save run time seconds --- vrobbler/apps/webpages/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/webpages/models.py b/vrobbler/apps/webpages/models.py index 2e01bc0..1f0767d 100644 --- a/vrobbler/apps/webpages/models.py +++ b/vrobbler/apps/webpages/models.py @@ -76,7 +76,9 @@ class WebPage(ScrobblableMixin): if not self.run_time_seconds or force: self.run_time_seconds = self.estimated_time_to_read_in_seconds - self.save(update_fields=["title", "domain", "extract"]) + self.save( + update_fields=["title", "domain", "extract", "run_time_seconds"] + ) @classmethod def find_or_create(cls, data_dict: Dict) -> "GeoLocation":