Added dataset name support
This commit is contained in:
parent
c6c62fc34c
commit
26a6b45d75
@ -50,7 +50,7 @@ def get_dataset_choices():
|
|||||||
datasets = Dataset.query.all()
|
datasets = Dataset.query.all()
|
||||||
dataset_choices = []
|
dataset_choices = []
|
||||||
for dataset in datasets:
|
for dataset in datasets:
|
||||||
label = dataset.date.strftime('%Y%m%d%H%M%S')
|
label = dataset.get_name()
|
||||||
label = f'{label} (Default)' if dataset.default else label
|
label = f'{label} (Default)' if dataset.default else label
|
||||||
choice = (dataset.id, label)
|
choice = (dataset.id, label)
|
||||||
dataset_choices.append(choice)
|
dataset_choices.append(choice)
|
||||||
|
Loading…
Reference in New Issue
Block a user