Editor flash message bugfix

This commit is contained in:
Vivek Santayana 2022-06-22 10:46:43 +01:00
parent 1254cf3698
commit 5d27baee08

View File

@ -102,7 +102,7 @@ class Dataset(db.Model):
with open(file_path, 'w') as file: with open(file_path, 'w') as file:
dump(data, file, indent=2) dump(data, file, indent=2)
write('system.log', f'Dataset {self.id} edited by {current_user.get_username()}.') 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.add(self)
db.session.commit() db.session.commit()
return True, 'Dataset successfully edited.' return True, 'Dataset successfully edited.'