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