Commit 86423954 authored by Vincent Mazenod's avatar Vincent Mazenod
Browse files

tweak export for tids

parent 03e5a1d3
......@@ -110,8 +110,13 @@ class JobDatasheetController extends AbstractController
preg_match_all('/([\d]+)([\+|\-])/', $column, $record);
$columns[] = $job->getColumns()[(int)$record[1][0]-1].$record[2][0];
}
$l = [implode(' ', $columns), $line['frequency']];
if(array_key_exists('tids', $line))
{
$l[] = implode(' ', $line['tids']);
}
fputcsv(
$fp, array_merge($columns, [$line['frequency']])
$fp, $l
);
}
......
......@@ -16,17 +16,17 @@
<i class="fas fa-sort-down"></i>
</span>
</th>
{% if job.constraintMining == "consecutive_with_tids" %}
<th class="col-md-4">
Tids
</th>
{% endif %}
<th class="col-md-2">
Frequency
<span id="frequency-sort">
<i class="fas fa-sort-down"></i>
</span>
</th>
{% if job.constraintMining == "consecutive_with_tids" %}
<th class="col-md-4">
Tids
</th>
{% endif %}
</tr>
</thead>
<tbody id="results">
......@@ -56,6 +56,11 @@
{% endfor %}
</td>
<td class="columns frequency">
<span class="badge badge-info">
{{ line.frequency }}
</span>
</td>
{% if job.constraintMining == "consecutive_with_tids" %}
<td class="columns tids">
{% for t in line.tids %}
......@@ -65,11 +70,6 @@
{% endfor %}
</td>
{% endif %}
<td class="columns frequency">
<span class="badge badge-info">
{{ line.frequency }}
</span>
</td>
</tr>
{% endfor %}
</tbody>
......
Supports Markdown
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