wwforonce commited on
Commit
51d370f
·
1 Parent(s): 803cf0b

fix dataset remove error

Browse files
Files changed (1) hide show
  1. sync_storage.py +1 -1
sync_storage.py CHANGED
@@ -383,7 +383,7 @@ This repository is automatically managed by the Open WebUI sync system.
383
  with tempfile.TemporaryDirectory() as tmpdir:
384
  logger.info(f"Step 2/5: Downloading current files to a temporary location...")
385
  for file_path in current_files:
386
- if file_path not in metadata["archives"]:
387
  logger.info(f"Skipping {file_path} (not in archive)")
388
  continue
389
  self.api.hf_hub_download(
 
383
  with tempfile.TemporaryDirectory() as tmpdir:
384
  logger.info(f"Step 2/5: Downloading current files to a temporary location...")
385
  for file_path in current_files:
386
+ if file_path.startswith("data-") and (file_path not in metadata["archives"]):
387
  logger.info(f"Skipping {file_path} (not in archive)")
388
  continue
389
  self.api.hf_hub_download(