From 853224b08ce103e64315c4133a0293cbd9033cc0 Mon Sep 17 00:00:00 2001 From: Jan Bertram Date: Thu, 19 Oct 2023 17:05:12 +0200 Subject: [PATCH] changes Nachname to sec_name --- rep_cli.py | 4 ++-- repertoire.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rep_cli.py b/rep_cli.py index 423864b..c586ddc 100644 --- a/rep_cli.py +++ b/rep_cli.py @@ -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) diff --git a/repertoire.sql b/repertoire.sql index f327d24..7f35e61 100644 --- a/repertoire.sql +++ b/repertoire.sql @@ -35,7 +35,7 @@ CREATE TABLE movement ( CREATE TABLE pianist ( id INTEGER NOT NULL PRIMARY KEY, first_name VARCHAR(255) NOT NULL, - Nachname VARCHAR(255) NOT NULL + sec_name VARCHAR(255) NOT NULL ); CREATE TABLE Konzert (