diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 5686ec56..bd98370d 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osinacore/__pycache__/urls.cpython-310.pyc b/osinaweb/osinacore/__pycache__/urls.cpython-310.pyc index c39f8326..ca94c75d 100644 Binary files a/osinaweb/osinacore/__pycache__/urls.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/urls.cpython-310.pyc differ diff --git a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc index 7630df43..d5b16058 100644 Binary files a/osinaweb/osinacore/__pycache__/views.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/osinacore/urls.py b/osinaweb/osinacore/urls.py index c2197b8b..57466603 100644 --- a/osinaweb/osinacore/urls.py +++ b/osinaweb/osinacore/urls.py @@ -82,6 +82,8 @@ urlpatterns = [ path('fetch_epics/', views.fetch_epics, name='fetch_epics'), path('projects/status//', views.fetch_projects_by_status, name='projects_by_status'), path('all-projects/', views.fetch_projects_by_status, name='all_projects'), + + path('delete-connections', views.delete_connections, name='delete-connections') ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file diff --git a/osinaweb/osinacore/views.py b/osinaweb/osinacore/views.py index 49bbb938..626c1065 100644 --- a/osinaweb/osinacore/views.py +++ b/osinaweb/osinacore/views.py @@ -876,3 +876,8 @@ def fetch_projects_by_status(request, status=None): 'status': status, } return render(request, 'projects-by-status.html', context) + + + +def delete_connections(request): + connections= Connection.objects.all().delete() \ No newline at end of file