Skip to content

Commit 8cf6958

Browse files
authored
fix: LEAP-1806: deprecate unused upload-example behavior (#7018)
1 parent 54f454e commit 8cf6958

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

label_studio/projects/views.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ def playground_replacements(request, task_data):
3636
return task_data
3737

3838

39-
@require_http_methods(['GET', 'POST'])
39+
@require_http_methods(['POST'])
4040
def upload_example_using_config(request):
4141
"""Generate upload data example by config only"""
42-
config = request.GET.get('label_config', '')
43-
if not config:
44-
config = request.POST.get('label_config', '')
42+
config = request.POST.get('label_config', '')
4543

4644
org_pk = get_organization_from_request(request)
4745
secure_mode = False

0 commit comments

Comments
 (0)