Editor flash message bugfix
This commit is contained in:
parent
1254cf3698
commit
5d27baee08
@ -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.'
|
Loading…
Reference in New Issue
Block a user