diff --git a/pyproject.toml b/pyproject.toml index e4ad4e2..b9a3eaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rda_python_common" -version = "2.0.0" +version = "2.0.1" authors = [ { name="Zaihua Ji", email="zji@ucar.edu" }, ] diff --git a/src/rda_python_common/pg_dbi.py b/src/rda_python_common/pg_dbi.py index 69cb123..ec13057 100644 --- a/src/rda_python_common/pg_dbi.py +++ b/src/rda_python_common/pg_dbi.py @@ -43,7 +43,7 @@ def __init__(self): self.TABLES = {} # record table field information self.SEQUENCES = {} # record table sequence fielnames self.SPECIALIST = {} # hash array refrences to specialist info of dsids - self.self.SYSDOWN = {} + self.SYSDOWN = {} self.PGDBI = {} self.ADDTBLS = [] self.PGSIGNS = ['!', '<', '>', '<>'] diff --git a/src/rda_python_common/pg_log.py b/src/rda_python_common/pg_log.py index dac2ec8..2190be5 100644 --- a/src/rda_python_common/pg_log.py +++ b/src/rda_python_common/pg_log.py @@ -299,7 +299,7 @@ def send_python_email(self, subject = None, receiver = None, msg = None, sender if cc: emlmsg['Cc'] = cc logmsg += " Cc'd " + cc - if not subject: subject = "Message from {}-{}".format(self.PGLOG['HOSTNAME'], self.self.get_command()) + if not subject: subject = "Message from {}-{}".format(self.PGLOG['HOSTNAME'], self.get_command()) # if not re.search(r'!$', subject): subject += '!' emlmsg['Subject'] = subject if self.CPID['CPID']: logmsg += " in " + self.CPID['CPID']