Skip to content

Commit

Permalink
Merge pull request #21 from Spiderpig02/fix-endpoint
Browse files Browse the repository at this point in the history
Fix: Correct the request attribute name from graph_method_name to met…
  • Loading branch information
SverreNystad authored Jan 2, 2024
2 parents 0e17333 + 28277c9 commit 6de5e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/graphtraversal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def fetch_graph_heuristics(request):
- data: List of heuristics available for the specified graph traversal method
"""
try:
heuristics: list[str] = get_heuristics(request.data["graph_method_name"])
heuristics: list[str] = get_heuristics(request.data["methods"])
return Response(status=status.HTTP_200_OK, data=heuristics)

except ValueError as va:
Expand Down

0 comments on commit 6de5e45

Please sign in to comment.