diff --git a/pyproject.toml b/pyproject.toml index 54b7494..d59d18f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rda_python_dsarch" -version = "2.0.3" +version = "2.0.4" authors = [ { name="Zaihua Ji", email="zji@ucar.edu" }, ] diff --git a/src/rda_python_dsarch/dsarch.py b/src/rda_python_dsarch/dsarch.py index 746c51e..e971290 100644 --- a/src/rda_python_dsarch/dsarch.py +++ b/src/rda_python_dsarch/dsarch.py @@ -2411,7 +2411,7 @@ def set_one_webfile(self, i, pgrec, file, flds, type, info = None, ndsid = None, if 'status' in record: self.change_wfile_mode(dsid, file, type, pgrec['status'], record['status']) if mlink or pgrec['meta_link'] and pgrec['meta_link'] == 'Y': self.set_meta_link(dsid, file) else: - if record['wfile'] != file: record['wfile'] = file + if 'wfile' not in record or record['wfile'] != file: record['wfile'] = file record['uid'] = self.PGOPT['UID'] if 'status' not in record: record['status'] = 'P' if not info: diff --git a/src/rda_python_dsarch/pg_arch.py b/src/rda_python_dsarch/pg_arch.py index c607b0b..f9611ef 100644 --- a/src/rda_python_dsarch/pg_arch.py +++ b/src/rda_python_dsarch/pg_arch.py @@ -35,7 +35,7 @@ def __init__(self): 'HS' : '', # dataset help software path 'SP' : '', # dataset savedpath } - self.ebpaths = {} + self.webpaths = {} self.savedpaths = {} self.grouptypes = {} self.CORDERS = {}