From 5d27baee089ab8a2580df2cf77fa626385ea14b2 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Wed, 22 Jun 2022 10:46:43 +0100 Subject: [PATCH] Editor flash message bugfix --- ref-test/app/models/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref-test/app/models/dataset.py b/ref-test/app/models/dataset.py index d3dc485..9fcc249 100644 --- a/ref-test/app/models/dataset.py +++ b/ref-test/app/models/dataset.py @@ -102,7 +102,7 @@ class Dataset(db.Model): with open(file_path, 'w') as file: dump(data, file, indent=2) write('system.log', f'Dataset {self.id} edited by {current_user.get_username()}.') - flash(f'Dataset {self.name} successfully edited.', 'success') + flash(f'Dataset {self.get_name()} successfully edited.', 'success') db.session.add(self) db.session.commit() return True, 'Dataset successfully edited.' \ No newline at end of file