poprawki w synchronizacji produktow
This commit is contained in:
3
app.py
3
app.py
@@ -858,7 +858,7 @@ def list_products():
|
||||
suggestions_dict=suggestions_dict
|
||||
)
|
||||
|
||||
@app.route('/admin/sync_suggestion_ajax/<int:item_id>', methods=['POST'])
|
||||
@app.route('/admin/sync_suggestion/<int:item_id>', methods=['POST'])
|
||||
@login_required
|
||||
def sync_suggestion_ajax(item_id):
|
||||
if not current_user.is_admin:
|
||||
@@ -875,7 +875,6 @@ def sync_suggestion_ajax(item_id):
|
||||
else:
|
||||
return jsonify({'success': True, 'message': f'Sugestia dla produktu „{item.name}” już istnieje.'})
|
||||
|
||||
|
||||
@app.route('/admin/delete_suggestion/<int:suggestion_id>')
|
||||
@login_required
|
||||
def delete_suggestion(suggestion_id):
|
||||
|
Reference in New Issue
Block a user