Browse Source

Actually save run time seconds

Colin Powell 1 năm trước cách đây
mục cha
commit
1e84497c85
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      vrobbler/apps/webpages/models.py

+ 3 - 1
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":