From bc60bcf941c44bd34191a61d83875ba4a60a3617 Mon Sep 17 00:00:00 2001 From: Eric Rosas Date: Tue, 12 Dec 2023 14:04:33 -0700 Subject: [PATCH] Fixed bug with new validation functions EPO-8832 Fixed bug with new validation functions --- pyproject.toml | 2 +- src/rubin/citsci/pipeline.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f880220..65ab05d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rubin.citsci" -version = "0.2.4" +version = "0.2.5" readme = "README.md" dependencies = [ "panoptes_client", diff --git a/src/rubin/citsci/pipeline.py b/src/rubin/citsci/pipeline.py index dd20784..a681759 100644 --- a/src/rubin/citsci/pipeline.py +++ b/src/rubin/citsci/pipeline.py @@ -82,7 +82,7 @@ def login_to_zooniverse(self, slug_name, email): print("Invalid email address! Please check the email address you provided and ensure it is correct.") return - def __check_package_version(): + def __check_package_version(self): try: installed_version = version('rubin.citsci') res = requests.get('https://pypi.org/simple/rubin-citsci/', headers = {"Accept": "application/vnd.pypi.simple.v1+json"}) @@ -98,7 +98,7 @@ def __check_package_version(): print("ERROR! : An error occurred while attempting to validate that the latest version of the rubin.citsci package is installed. Please notify the EPO citizen science team that this error message has occurred!") return - def __validate_email_address(email): + def __validate_email_address(self, email): regex = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b' if re.fullmatch(regex, email): return True