Skip to content

Commit

Permalink
Fix bug contd
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvan2006 committed Sep 11, 2024
1 parent 9ad810d commit 72e3d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/indicators/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_indicator_by_name(request, indicator_name):
@api_view(['GET'])
def get_datasource_by_name(request, datasource_name):
try:
datasource = DataSource.objects.get(name=datasource_name)
datasource = DataSource.objects.get(url=datasource_name)
serializer = DataSourceSerializer(datasource)
return Response(serializer.data)
except DataSource.DoesNotExist:
Expand Down

0 comments on commit 72e3d1b

Please sign in to comment.