Skip to content

Commit

Permalink
Merge pull request #304 from domino14/decode-reverse-bug
Browse files Browse the repository at this point in the history
decode encoded search
  • Loading branch information
domino14 authored Dec 25, 2018
2 parents ca5a14a + 2467ed5 commit 2b0315c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions djAerolith/whitleyCards/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ def handle_create_post(request):
logger.debug('POST data %s', request.POST)
encoded_search = search_criteria_to_b64(request.POST)
return response({
'url': reverse('flashcards_by_search', args=(lex.pk,
encoded_search)),
'url': reverse('flashcards_by_search', args=(
lex.pk,
encoded_search.decode())),
'success': True})

elif action == 'namedListsFlashcard':
Expand Down

0 comments on commit 2b0315c

Please sign in to comment.