System: Rename aio_register to aio_approve.

feature-admin-split
Darksider3 5 years ago
parent 8d4d2038d3
commit 32c6ea7e07

@ -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}")

@ -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)

@ -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!

Loading…
Cancel
Save