fixed gamechanger submission issues. added better checking for success
This commit is contained in:
@@ -169,8 +169,11 @@ def lineup_submit(request):
|
||||
)
|
||||
elif lineup_entry["label"] != "DR":
|
||||
lineup.append(d)
|
||||
gamechanger.submit_lineup(request, lineup)
|
||||
return HttpResponse(status=200)
|
||||
r = gamechanger.submit_lineup(request, lineup)
|
||||
if r.content == b"OK":
|
||||
return HttpResponse(status=200)
|
||||
else:
|
||||
return HttpResponseServerError()
|
||||
return HttpResponseServerError()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user