Ver Fonte

Actually save run time seconds

Colin Powell há 1 ano atrás
pai
commit
1e84497c85
1 ficheiros alterados com 3 adições e 1 exclusões
  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":