aboutsummaryrefslogtreecommitdiff
path: root/yoshi/account.py
diff options
context:
space:
mode:
Diffstat (limited to 'yoshi/account.py')
-rw-r--r--yoshi/account.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/yoshi/account.py b/yoshi/account.py
index fb42008..e92c304 100644
--- a/yoshi/account.py
+++ b/yoshi/account.py
@@ -11,9 +11,14 @@ from yoshi import database
class Account:
"""Represents a login account."""
- def __init__(self, uuid: str, application: str, #pylint: disable=R0913,R0917
- username: str, #pylint: disable=R0913,R0917
- password: str, url: str) -> None: #pylint: disable=R0913,R0917
+ def __init__(
+ self,
+ uuid: str,
+ application: str, # pylint: disable=R0913,R0917
+ username: str, # pylint: disable=R0913,R0917
+ password: str,
+ url: str,
+ ) -> None: # pylint: disable=R0913,R0917
self.uuid = uuid
self.application = application
self.username = username
@@ -22,16 +27,17 @@ class Account:
def display_account(self) -> None:
"""Print the account details."""
- print('ID:', self.uuid)
- print('Application:', self.application)
- print('Username:', self.username)
- print('Password:', self.password)
- print('URL:', self.url)
+ print("ID:", self.uuid)
+ print("Application:", self.application)
+ print("Username:", self.username)
+ print("Password:", self.password)
+ print("URL:", self.url)
def save_account(self) -> None:
"""Save the account details to the database."""
database.add_account(
- self.uuid, self.application, self.username, self.password, self.url)
+ self.uuid, self.application, self.username, self.password, self.url
+ )
def delete_account(self) -> bool:
"""Delete the account from the database.