error tonto, tenia que cambiar id por file_id

This commit is contained in:
Daniel Cortes
2019-03-12 19:10:13 -03:00
parent bd81946da3
commit 5fbff72806

View File

@@ -181,7 +181,7 @@ def rename_file(file_id):
_rename_file(file, new_name) _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']) @bp.route('/recategorize/<int:file_id>', methods=['POST'])
@@ -201,7 +201,7 @@ def recategorize(file_id):
file.category_id = new_category.id file.category_id = new_category.id
db.session.commit() 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']) @bp.route('/retype/<int:file_id>', methods=['POST'])