Skip to content

Commit

Permalink
exception while exporting user csvs for non ajax request fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
saavrabh committed Jun 4, 2018
1 parent 8aee52c commit 1deba9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gnowsys-ndf/gnowsys_ndf/ndf/views/gcourse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2817,8 +2817,10 @@ def course_analytics(request, group_id, user_id, render_template=False, get_resu
return analytics_data

template = "ndf/lms.html"

ajax_request = request.GET.get("ajax_request",'')
if request:
ajax_request = request.GET.get("ajax_request",'')
else:
ajax_request = None
if request:
# let's keep all get calls from request in this block.
# so that we can use this method for api calls
Expand Down

0 comments on commit 1deba9e

Please sign in to comment.