Added dataset name support

This commit is contained in:
Vivek Santayana 2022-06-22 01:56:13 +01:00
parent c6c62fc34c
commit 26a6b45d75

View File

@ -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)