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