Skip to content

Commit

Permalink
Merge pull request #7 from edx/ashultz0/endpoint2
Browse files Browse the repository at this point in the history
feat: return debug-useful response from endpoint
  • Loading branch information
ashultz0 authored Oct 25, 2023
2 parents 4a09142 + 227d8f7 commit ff780b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flashcards/apps/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
@require_http_methods(['GET'])
def cards(request, course_id, block_id):
cards = anki_from_block_id(course_id, block_id)
return Response("cards")
return Response(cards)
1 change: 1 addition & 0 deletions flashcards/apps/cards/anki.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ def anki_from_block_id(course_id, block_id):
csv_maybe = cards_from_block_id(course_id, block_id)
result = csv_maybe.replace('\t', '')
create_anki_cards(result)
return csv_maybe # return the CSV text so we can see it in testing

0 comments on commit ff780b2

Please sign in to comment.