new export actions erasure
This commit is contained in:
parent
73881f4f25
commit
b006ec1973
|
@ -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():
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in New Issue