Compare commits
2 Commits
v0.3.0
...
39f01b266f
| Author | SHA1 | Date | |
|---|---|---|---|
|
39f01b266f
|
|||
|
31c3f7d438
|
@@ -28,7 +28,7 @@ def archive_repo(source: Path, target_dir: Path, dry_run: bool) -> Path:
|
||||
return archive_path
|
||||
|
||||
with open(archive_path, "wb") as f:
|
||||
cctx = zstandard.ZstdCompressor(level=20)
|
||||
cctx = zstandard.ZstdCompressor(level=20, threads=-1)
|
||||
with cctx.stream_writer(f) as compressor:
|
||||
with tarfile.open(fileobj=compressor, mode="w|") as tar:
|
||||
tar.add(source, arcname=source.name)
|
||||
@@ -69,6 +69,9 @@ def run(
|
||||
continue
|
||||
if category and cat.config.name not in category:
|
||||
continue
|
||||
|
||||
if cat.config.days == 0 or cat.config.days is None:
|
||||
continue
|
||||
|
||||
limit_days = cat.config.days if cat.config.days is not None else older_than
|
||||
|
||||
|
||||
Reference in New Issue
Block a user