Commit ad365745 authored by Irving David's avatar Irving David

Ahora toma el título del reporte del campo name de la tabla purchase

parent 1fb0cf94
......@@ -139,7 +139,7 @@
<div class="row col-lg-11 title">
<div class="box box-success box-solid info">
<div class="box-header with-border">
<h3>{{ searchInfo.title }} {{ searchInfo.startDate }} to {{ searchInfo.endDate}}</h3>
<h3>{{ searchInfo.title }}, {{ searchInfo.startDate }} to {{ searchInfo.endDate}}</h3>
<h6>{{ searchInfo.report_name }}</h6>
<!-- /.box-tools -->
</div>
......
......@@ -46,7 +46,7 @@ def report_L2ASCL(request, purchase_id):
template = "sclData.html"
reporteDir = 'mask'
folders = ""
purchase = Purchase.objects.values('user__email', 'is_public', 'search__search_name',
purchase = Purchase.objects.values('user__email', 'is_public', 'name', 'search__search_name',
'search__process_id__name').get(pk=purchase_id)
email = purchase['user__email']
path = USERS_PATH + email + '/' + purchase_id + '/'
......@@ -70,7 +70,8 @@ def report_L2ASCL(request, purchase_id):
PDFGenerator(request, path, reporteDir, datasets)
searchInfo = {
"title": purchase['search__search_name'],
"title": purchase['name'],
#"title": purchase['search__search_name'],
"process": purchase['search__process_id__name'],
"startDate": startDate,
"endDate": endDate,
......@@ -596,4 +597,4 @@ def wsEditTitle(request):
print ("hola")
return HttpResponse("hola")
else:
raise Http404
\ No newline at end of file
raise Http404
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment