Skip to content

Commit

Permalink
Merge pull request #1944 from Sefaria/fix-topic-source-reordering-pos…
Browse files Browse the repository at this point in the history
…t-load

fix(topics): load post data using more standard `request.body`
  • Loading branch information
nsantacruz authored Jun 30, 2024
2 parents 642d293 + a3bbc58 commit ca00d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3270,7 +3270,7 @@ def topic_ref_api(request, tref):

@staff_member_required
def reorder_sources(request):
sources = json.loads(request.POST["json"]).get("sources", [])
sources = json.loads(request.body).get("sources", [])
slug = request.GET.get('topic')
lang = 'en' if request.GET.get('lang') == 'english' else 'he'
return jsonResponse(update_order_of_topic_sources(slug, sources, request.user.id, lang=lang))
Expand Down

0 comments on commit ca00d2b

Please sign in to comment.