changes Spieler_in to pianist

This commit is contained in:
2023-10-19 17:03:09 +02:00
parent f0876d310e
commit ac6025b364
2 changed files with 6 additions and 6 deletions

View File

@@ -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 = ''