Rename RE_PRODUCT to RE_FILE for accuracy
This commit is contained in:
parent
ae44b47a71
commit
ee81af22f0
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ class Archive():
|
||||||
RE_YEAR = re.compile(r'^\d{4}$')
|
RE_YEAR = re.compile(r'^\d{4}$')
|
||||||
RE_MONTH_DAY = re.compile(r'^\d{2}$')
|
RE_MONTH_DAY = re.compile(r'^\d{2}$')
|
||||||
RE_CALL = re.compile(r'^[A-Z]{4}$')
|
RE_CALL = re.compile(r'^[A-Z]{4}$')
|
||||||
RE_PRODUCT = re.compile(r'^([A-Z]{4})(\d{4})(\d{2})(\d{2})_(\d{2})(\d{2})(\d{2})')
|
RE_FILE = re.compile(r'^([A-Z]{4})(\d{4})(\d{2})(\d{2})_(\d{2})(\d{2})(\d{2})')
|
||||||
|
|
||||||
def each_downloaded_key(self,
|
def each_downloaded_key(self,
|
||||||
year: int=None,
|
year: int=None,
|
||||||
|
@ -182,7 +182,7 @@ class Archive():
|
||||||
parts.append(call.name)
|
parts.append(call.name)
|
||||||
|
|
||||||
for item in os.scandir(os.path.join(*parts)):
|
for item in os.scandir(os.path.join(*parts)):
|
||||||
if not (item.is_file() and self.RE_PRODUCT.match(item.name)):
|
if not (item.is_file() and self.RE_FILE.match(item.name)):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
yield '/'.join([*parts[1:], item.name])
|
yield '/'.join([*parts[1:], item.name])
|
||||||
|
|
Loading…
Add table
Reference in a new issue