We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca93267 + 64689e2 commit 5255106Copy full SHA for 5255106
services/datalad/datalad_service/tasks/maintenance.py
@@ -1,6 +1,7 @@
1
import os
2
import logging
3
import subprocess
4
+import re
5
import random
6
7
@@ -23,7 +24,7 @@ def dataset_factory():
23
24
os.path.join(DATALAD_DATASET_PATH, d)
25
for d in os.listdir(DATALAD_DATASET_PATH)
26
if os.path.isdir(os.path.join(DATALAD_DATASET_PATH, d))
- and d.startswith('ds')
27
+ and re.match(r'^ds\d{6}$', d)
28
]
29
if not datasets:
30
logging.warning(
0 commit comments