Skip to content

Commit

Permalink
Fig bug contd contd
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvan2006 committed Sep 11, 2024
1 parent 72e3d1b commit 230e187
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 @@ -65,7 +65,7 @@ def get_datasource_by_name(request, datasource_name):
@api_view(['GET'])
def get_datasource_values(request, datasource_name):
try:
datasource = DataSource.objects.get(name=datasource_name)
datasource = DataSource.objects.get(url=datasource_name)
values = DataSourceValue.objects.filter(data_source=datasource).order_by('date')
serializer = DataSourceValueSerializer(values, many=True)
return Response(serializer.data)
Expand Down

0 comments on commit 230e187

Please sign in to comment.