From 26a6b45d752f1f2a300e7ae4255df45de7a96031 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Wed, 22 Jun 2022 01:56:13 +0100 Subject: [PATCH] Added dataset name support --- ref-test/app/tools/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref-test/app/tools/forms.py b/ref-test/app/tools/forms.py index eeea160..8be1aab 100644 --- a/ref-test/app/tools/forms.py +++ b/ref-test/app/tools/forms.py @@ -50,7 +50,7 @@ def get_dataset_choices(): datasets = Dataset.query.all() dataset_choices = [] 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 choice = (dataset.id, label) dataset_choices.append(choice)