changes Spieler_in to pianist
This commit is contained in:
@@ -14,7 +14,7 @@ class Session:
|
||||
def get_active_user(self):
|
||||
sql_command = f'''
|
||||
SELECT first_name, Nachname
|
||||
FROM Spieler_in
|
||||
FROM pianist
|
||||
WHERE id = {self.user}
|
||||
'''
|
||||
active_user = ''
|
||||
@@ -46,14 +46,14 @@ class Session:
|
||||
|
||||
def create_new_user(self, first_name, name):
|
||||
sql_command = f'''
|
||||
INSERT INTO Spieler_in (first_name, Nachname)
|
||||
INSERT INTO pianist (first_name, Nachname)
|
||||
VALUES ("{first_name}", "{name}");
|
||||
'''
|
||||
self.db_agent.execute(sql_command)
|
||||
|
||||
def show_users(self):
|
||||
sql_command = '''
|
||||
SELECT * FROM Spieler_in;
|
||||
SELECT * FROM pianist;
|
||||
'''
|
||||
result_list = self.db_agent.execute(sql_command).fetchall()
|
||||
fun_resultstring = ''
|
||||
|
||||
Reference in New Issue
Block a user