Add term column
This commit is contained in:
parent
b5e2e8ab2a
commit
377462ed20
5 changed files with 100 additions and 1 deletions
|
|
@ -77,6 +77,7 @@ def create_tune_instrument(tune_id):
|
|||
instrument_id=instrument_id,
|
||||
learned_from_id=data.get("learned_from_id"),
|
||||
tuning_id=data.get("tuning_id"),
|
||||
term_id=data.get("term_id"),
|
||||
date_learned=data.get("date_learned"),
|
||||
status=data.get("status"),
|
||||
difficulty=data.get("difficulty"),
|
||||
|
|
@ -94,7 +95,7 @@ def create_tune_instrument(tune_id):
|
|||
def update_tune_instrument(tune_id, entry_id):
|
||||
entry = db.get_or_404(TuneByInstrument, entry_id)
|
||||
data = request.get_json(force=True)
|
||||
fields = ("instrument_id", "learned_from_id", "tuning_id", "date_learned",
|
||||
fields = ("instrument_id", "learned_from_id", "tuning_id", "term_id", "date_learned",
|
||||
"status", "difficulty")
|
||||
for field in fields:
|
||||
if field in data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue