diff options
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/views/e-library.py')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/views/e-library.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/e-library.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/e-library.py index 56ffac3..5048302 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/e-library.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/e-library.py @@ -100,6 +100,7 @@ def resource_list(request, group_id, app_id=None, page_no=1): educationaluse_stats = {} + if files: eu_list = [] # count @@ -119,7 +120,6 @@ def resource_list(request, group_id, app_id=None, page_no=1): # print educationaluse_stats result_paginated_cur = files result_pages = paginator.Paginator(result_paginated_cur, page_no, no_of_objs_pp) - datavisual.append({"name":"Doc", "count": educationaluse_stats.get("Documents", 0)}) datavisual.append({"name":"Image","count": educationaluse_stats.get("Images", 0)}) datavisual.append({"name":"Video","count": educationaluse_stats.get("Videos", 0)}) @@ -130,7 +130,7 @@ def resource_list(request, group_id, app_id=None, page_no=1): return render_to_response("ndf/resource_list.html", {'title': title, - 'appId':app._id, + 'appId':app._id, "app_gst": app, # 'already_uploaded': already_uploaded,'shelf_list': shelf_list,'shelves': shelves, 'files': files, "detail_urlname": "file_detail", 'ebook_pages': educationaluse_stats.get("eBooks", 0), |