Compare commits
3 Commits
7f9e806c23
...
7352af038b
| Author | SHA1 | Date | |
|---|---|---|---|
| 7352af038b | |||
| 69d701d600 | |||
| b5041dbc54 |
@@ -21,10 +21,11 @@ At the moment, an alpha version is undertaken, with these features:
|
|||||||
- Show pieces by composer (`c` shows composers, `s number_of_composer` shows pieces)
|
- Show pieces by composer (`c` shows composers, `s number_of_composer` shows pieces)
|
||||||
- Show movements through works (`sw work_number`)
|
- Show movements through works (`sw work_number`)
|
||||||
- Mark movement as mastered for active user (`m number_of_work number_of_movement`)
|
- Mark movement as mastered for active user (`m number_of_work number_of_movement`)
|
||||||
- (planned) Show possible commands (`h`)
|
- Show possible commands (`h`)
|
||||||
- (planned) Show mastered works/movements for activated user
|
- (planned) Show mastered works/movements for activated user
|
||||||
- (planned) Save recordings per movement in db
|
- (planned) Save recordings per movement in db
|
||||||
- (planned) Listen to saved recordings
|
- (planned) Listen to saved recordings
|
||||||
|
- (planned) Works are shown sorted (opus, collection e.g. "Walzer", "Sonaten")
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ class work_under_id:
|
|||||||
saetze = dict()
|
saetze = dict()
|
||||||
nummern = set()
|
nummern = set()
|
||||||
suw_liste = self.reader.execute(sql_suw).fetchall()
|
suw_liste = self.reader.execute(sql_suw).fetchall()
|
||||||
# 0 work_id, 1 mov_number, 2 numb, 3 designation, 4 mus_key, 5 recording
|
# 0 work_id, 1 mov_number, 2 numb, 3 designation, 4 mus_key
|
||||||
for satz in suw_liste:
|
for satz in suw_liste:
|
||||||
saetze[satz[1]] = satz[2], satz[3], satz[4]
|
saetze[satz[1]] = satz[2], satz[3], satz[4]
|
||||||
if not satz[2] is None:
|
if not satz[2] is None:
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ CREATE TABLE movement (
|
|||||||
numb VARCHAR(15),
|
numb VARCHAR(15),
|
||||||
designation VARCHAR(63),
|
designation VARCHAR(63),
|
||||||
mus_key VARCHAR(15),
|
mus_key VARCHAR(15),
|
||||||
recording BLOB,
|
|
||||||
PRIMARY KEY(work_id, mov_number),
|
PRIMARY KEY(work_id, mov_number),
|
||||||
FOREIGN KEY(work_id) REFERENCES work(id)
|
FOREIGN KEY(work_id) REFERENCES work(id)
|
||||||
);
|
);
|
||||||
@@ -50,6 +49,7 @@ CREATE TABLE is_able_to_play(
|
|||||||
mov_id INTEGER NOT NULL,
|
mov_id INTEGER NOT NULL,
|
||||||
pianist_id INTEGER NOT NULL,
|
pianist_id INTEGER NOT NULL,
|
||||||
days_to_practice INTEGER DEFAULT 7,
|
days_to_practice INTEGER DEFAULT 7,
|
||||||
|
recording BLOB,
|
||||||
PRIMARY KEY(work_id, mov_id, pianist_id),
|
PRIMARY KEY(work_id, mov_id, pianist_id),
|
||||||
FOREIGN KEY(work_id, mov_id) REFERENCES movement(work_id, mov_number),
|
FOREIGN KEY(work_id, mov_id) REFERENCES movement(work_id, mov_number),
|
||||||
FOREIGN KEY(pianist_id) REFERENCES pianist(id)
|
FOREIGN KEY(pianist_id) REFERENCES pianist(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user