new export actions erasure

This commit is contained in:
Cayo Puigdefabregas 2022-09-21 09:42:31 +02:00
parent 73881f4f25
commit b006ec1973
2 changed files with 6 additions and 1 deletions

View file

@ -798,6 +798,7 @@ class ExportsView(View):
export_ids = {
'metrics': self.metrics,
'devices': self.devices_list,
'actions_erasures': self.actions_erasures,
'certificates': self.erasure,
'lots': self.lots_export,
'devices_lots': self.devices_lots_export,
@ -898,6 +899,10 @@ class ExportsView(View):
insert_hash(res.data)
return res
def actions_erasures(self):
data = StringIO()
return self.response_csv(data, "Erasures.csv")
def build_erasure_certificate(self):
erasures = []
for device in self.find_devices():

View file

@ -29,7 +29,7 @@
<span class="d-none" id="exportAlertModal" data-bs-toggle="modal" data-bs-target="#exportErrorModal"></span>
<ul class="dropdown-menu" aria-labelledby="btnExport">
<li>
<a href="javascript:export_file('devices')" class="dropdown-item">
<a href="javascript:export_file('actions_erasures')" class="dropdown-item">
<i class="bi bi-file-spreadsheet"></i>
Data Storage Spreadsheet
</a>