error tonto, tenia que cambiar id por file_id
This commit is contained in:
@@ -181,7 +181,7 @@ def rename_file(file_id):
|
||||
|
||||
_rename_file(file, new_name)
|
||||
|
||||
return redirect(url_for('files.preview_file', id=file.id))
|
||||
return redirect(url_for('files.preview_file', file_id=file.id))
|
||||
|
||||
|
||||
@bp.route('/recategorize/<int:file_id>', methods=['POST'])
|
||||
@@ -201,7 +201,7 @@ def recategorize(file_id):
|
||||
file.category_id = new_category.id
|
||||
db.session.commit()
|
||||
|
||||
return redirect(url_for('files.preview_file', id=file.id))
|
||||
return redirect(url_for('files.preview_file', file_id=file.id))
|
||||
|
||||
|
||||
@bp.route('/retype/<int:file_id>', methods=['POST'])
|
||||
|
||||
Reference in New Issue
Block a user