Skip to content

Commit

Permalink
Checkbox for PDF to delete or not.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvalics committed Oct 22, 2023
1 parent 8e747c8 commit 2663ca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dj_backend_server/api/views/views_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def ingest(request):
return JsonResponse({'error': 'Type not supported, use one of pdf, website or codebase'})

if type_ == 'pdf':
pdf_handler_task.delay(shared_folder, namespace)
delete_folder_flag = data.get('delete_folder_flag', False)
pdf_handler_task.delay(shared_folder, namespace, delete_folder_flag)
elif type_ == 'website':
print("Calling website handler task")
website_handler_task.delay(shared_folder, namespace)
Expand Down

0 comments on commit 2663ca2

Please sign in to comment.