Skip to content

Commit

Permalink
Removed slug_name param from login function
Browse files Browse the repository at this point in the history
Removed slug_name param from login function
  • Loading branch information
ericdrosas87 committed Jul 2, 2024
1 parent 63e2d11 commit db3d4db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
]
description = "The companion package to the Rubin citizen science notebooks."

version = "0.5.1"
version = "0.5.2"
readme = "README.md"
dependencies = [
"panoptes_client",
Expand Down
17 changes: 4 additions & 13 deletions src/rubin/citsci/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,8 @@ def create_new_project_from_template(self, project_name="crhiggs/template-test")
self.project_id = self.project.id
return self.project

def login_to_zooniverse(self, slug_name, email):
def login_to_zooniverse(self, email):
"""
This method assumes that you have already created an account on the Zooniverse
platform. If not, please go to the Zooniverse website and create an account:
https://www.zooniverse.org/
Email address validation occurs before the login prompt is called and also
checks if the latest version of this package is installed.
"""
Expand All @@ -93,13 +88,9 @@ def login_to_zooniverse(self, slug_name, email):
self.email = email
self.client = panoptes_client.Panoptes.connect(login="interactive")
print("You now are logged in to the Zooniverse platform.")

if slug_name is not "":
self.project = Project.find(slug=slug_name)
self.project_id = self.project.id
else:
self.__log_slug_names()
return
self.__log_slug_names()

return
else:
print("Invalid email address! Please check the email address you provided and ensure it is correct.")
return
Expand Down

0 comments on commit db3d4db

Please sign in to comment.