Don't call internal methods on ArchiveProduct
This commit is contained in:
parent
45a5ef6cbd
commit
29372d9661
1 changed files with 5 additions and 2 deletions
|
@ -49,7 +49,7 @@ class ArchiveProduct():
|
|||
|
||||
return ret
|
||||
|
||||
def __path__(self):
|
||||
def path(self):
|
||||
parts = self.__parts__()
|
||||
ret = os.path.join(*parts)
|
||||
|
||||
|
@ -60,6 +60,9 @@ class ArchiveProduct():
|
|||
|
||||
return ret
|
||||
|
||||
def key(self):
|
||||
return str(self)
|
||||
|
||||
@staticmethod
|
||||
def from_s3_key(key: str):
|
||||
product = ArchiveProduct()
|
||||
|
@ -82,7 +85,7 @@ class ArchiveProduct():
|
|||
return product
|
||||
|
||||
def is_downloaded(self, path: str):
|
||||
return os.path.isfile(os.path.join(path, self.__path__()))
|
||||
return os.path.isfile(os.path.join(path, self.path()))
|
||||
|
||||
def is_reported(self, db: Database):
|
||||
sql = """select count((
|
||||
|
|
Loading…
Add table
Reference in a new issue