Skip to content

Commit 5b2fbd5

Browse files
committed
fix pattern
1 parent e46ecd3 commit 5b2fbd5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cirada_software/delete_duplicate_downloads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def execute_move(self, dest: Path) -> List[Tuple[Path, Path]]:
188188
def dedupe_tiles(
189189
tile: str,
190190
root: str | Path = ".",
191-
pattern: str = r"20*-0*/*/*/*_{tile}_*",
191+
pattern: str = r"20*-*/*/*/*_{tile}_*",
192192
delete: bool = False,
193193
moveto: Optional[str | Path] = None,
194194
) -> dict:
@@ -298,7 +298,7 @@ def main() -> None:
298298
)
299299
parser.add_argument("tile")
300300
parser.add_argument("--root", default=".")
301-
parser.add_argument("--pattern", default=r"20*-0*/*/*/*_{tile}_*")
301+
parser.add_argument("--pattern", default=r"20*-*/*/*/*_{tile}_*")
302302
group = parser.add_mutually_exclusive_group()
303303
group.add_argument("--delete", action="store_true")
304304
group.add_argument("--moveto", metavar="DIR")

cirada_software/fix_duplicate_downloads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def run_deduplication(
116116
print(
117117
f"Running dedupe_tiles for tile {tile} (found {nfiles} files)."
118118
)
119-
pattern = r"20*-0*/*/*/*_{tile}_*"
119+
pattern = r"20*-*/*/*/*_{tile}_*"
120120
dedupe_tiles(
121121
tile=tile,
122122
root=download_dir,

0 commit comments

Comments
 (0)