From 32c6ea7e079a75b9ebae05767a4001ab25270fa0 Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Fri, 25 Oct 2019 06:49:43 +0200 Subject: [PATCH] System: Rename aio_register to aio_approve. --- private/Import.py | 2 +- private/editUsers.py | 2 +- private/lib/System.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/private/Import.py b/private/Import.py index 09bd049..9e16ebf 100755 --- a/private/Import.py +++ b/private/Import.py @@ -44,7 +44,7 @@ def import_from_file(file_path: str, db: str, user_ids: tuple = tuple([])) -> bo if row["status"] == "1": try: sys_ctl.setUser(row["username"]) - sys_ctl.aio_register(row["pubkey"]) + sys_ctl.aio_approve(row["pubkey"]) print(row['username'], "====> Registered.") except lib.UserExceptions.General as GeneralExcept: print(f"Something didnt work out! {GeneralExcept}") diff --git a/private/editUsers.py b/private/editUsers.py index 77e6096..c6c47fe 100755 --- a/private/editUsers.py +++ b/private/editUsers.py @@ -136,7 +136,7 @@ if __name__ == "__main__": try: DB.safequery("UPDATE `applications` SET `status`=? WHERE `username`=?", tuple([args.status, args.user])) - sys_ctl.aio_register(CurrentUser["pubkey"]) + sys_ctl.aio_approve(CurrentUser["pubkey"]) except sqlite3.Error as e: print(f"Could not update Users status in database") exit(1) diff --git a/private/lib/System.py b/private/lib/System.py index 467a02b..e9e1313 100644 --- a/private/lib/System.py +++ b/private/lib/System.py @@ -45,7 +45,7 @@ class System: self.home = home self.user = username - def aio_register(self, pubkey, group="tilde"): + def aio_approve(self, pubkey, group="tilde"): """ Executes all neccessary steps to create a user from itself. Raises ALOT of possible exceptions :Note: CAREFULL! You MUST except the exceptions!