Skip to content

Commit

Permalink
remove unnecessary behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jombooth committed Feb 4, 2025
1 parent f7c4b02 commit 16e8521
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions label_studio/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ def playground_replacements(request, task_data):
@require_http_methods(['POST'])
def upload_example_using_config(request):
"""Generate upload data example by config only"""
config = request.GET.get('label_config', '')
if not config:
config = request.POST.get('label_config', '')
config = request.POST.get('label_config', '')

org_pk = get_organization_from_request(request)
secure_mode = False
Expand Down

0 comments on commit 16e8521

Please sign in to comment.