We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54f454e commit 8cf6958Copy full SHA for 8cf6958
1 file changed
label_studio/projects/views.py
@@ -36,12 +36,10 @@ def playground_replacements(request, task_data):
36
return task_data
37
38
39
-@require_http_methods(['GET', 'POST'])
+@require_http_methods(['POST'])
40
def upload_example_using_config(request):
41
"""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', '')
+ config = request.POST.get('label_config', '')
45
46
org_pk = get_organization_from_request(request)
47
secure_mode = False
0 commit comments