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 @@ ...@@ -139,7 +139,7 @@
<div class="row col-lg-11 title"> <div class="row col-lg-11 title">
<div class="box box-success box-solid info"> <div class="box box-success box-solid info">
<div class="box-header with-border"> <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> <h6>{{ searchInfo.report_name }}</h6>
<!-- /.box-tools --> <!-- /.box-tools -->
</div> </div>
......
...@@ -46,7 +46,7 @@ def report_L2ASCL(request, purchase_id): ...@@ -46,7 +46,7 @@ def report_L2ASCL(request, purchase_id):
template = "sclData.html" template = "sclData.html"
reporteDir = 'mask' reporteDir = 'mask'
folders = "" 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) 'search__process_id__name').get(pk=purchase_id)
email = purchase['user__email'] email = purchase['user__email']
path = USERS_PATH + email + '/' + purchase_id + '/' path = USERS_PATH + email + '/' + purchase_id + '/'
...@@ -70,7 +70,8 @@ def report_L2ASCL(request, purchase_id): ...@@ -70,7 +70,8 @@ def report_L2ASCL(request, purchase_id):
PDFGenerator(request, path, reporteDir, datasets) PDFGenerator(request, path, reporteDir, datasets)
searchInfo = { searchInfo = {
"title": purchase['search__search_name'], "title": purchase['name'],
#"title": purchase['search__search_name'],
"process": purchase['search__process_id__name'], "process": purchase['search__process_id__name'],
"startDate": startDate, "startDate": startDate,
"endDate": endDate, "endDate": endDate,
......
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