Procházet zdrojové kódy

[videos] Fix utils

Colin Powell před 6 měsíci
rodič
revize
cc52e00d15
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      vrobbler/apps/videos/utils.py

+ 1 - 1
vrobbler/apps/videos/utils.py

@@ -67,7 +67,7 @@ def get_or_create_video(data_dict: dict, post_keys: dict, force_update=False):
     # TODO this is a hack so we don't spam scrobbles without a run time seconds
     if video.run_time_seconds == 0:
         video.run_time_seconds = 1800
-        video.save(update_fields=["run_time_seconds"]
+        video.save(update_fields=["run_time_seconds"])
 
     return video