add: add user method to database and init table
This commit is contained in:
parent
d2d6fc9947
commit
15cd72414e
@ -26,6 +26,7 @@ class Database:
|
||||
for key, value in content.keys():
|
||||
command += f"{key} {value}, "
|
||||
command += ")"
|
||||
self.cursor.execute(command)
|
||||
|
||||
def create_user_table(self):
|
||||
self.cursor.execute("SHOW TABLES");
|
||||
|
@ -7,3 +7,4 @@ user = config.database.get("user")
|
||||
password = config.database.get("password")
|
||||
|
||||
database = Database.Database(host, port, user, password)
|
||||
database.create_user_table()
|
||||
|
Loading…
Reference in New Issue
Block a user