Procházet zdrojové kódy

17713 fix underscore in datasource.sync (#17729)

Arthur Hanson před 1 rokem
rodič
revize
4e763462e6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      netbox/core/models/data.py

+ 1 - 1
netbox/core/models/data.py

@@ -201,7 +201,7 @@ class DataSource(JobsMixin, PrimaryModel):
             logger.debug(f"Updated {updated_count} files")
 
             # Bulk delete deleted files
-            deleted_count, _ = DataFile.objects.filter(pk__in=deleted_file_ids).delete()
+            deleted_count, __ = DataFile.objects.filter(pk__in=deleted_file_ids).delete()
             logger.debug(f"Deleted {deleted_count} files")
 
             # Walk the local replication to find new files