- This overview shows files and their checksums.
- These checksums can de used to verify data integrity.
+ This overview shows files and their sizes and checksums and can be used to verify data integrity.
The checksum algorithm used is SHA-256.
diff --git a/research/research.py b/research/research.py
index a39d1bcf..2b1189d4 100644
--- a/research/research.py
+++ b/research/research.py
@@ -283,13 +283,13 @@ def download_report() -> Response:
ext = '.csv'
if response['status'] == 'ok':
for result in response["data"]:
- output += f"{result['name']},{result['checksum']} \n"
+ output += f"{result['name']},{result['size']},{result['checksum']} \n"
else:
mime = 'text/plain'
ext = '.txt'
if response['status'] == 'ok':
for result in response["data"]:
- output += f"{result['name']} {result['checksum']} \n"
+ output += f"{result['name']} {result['size']} {result['checksum']} \n"
return Response(
output,
diff --git a/research/static/research/js/research.js b/research/static/research/js/research.js
index 3eeb65ee..0ceb4f9b 100644
--- a/research/static/research/js/research.js
+++ b/research/static/research/js/research.js
@@ -177,10 +177,11 @@ $(function () {
{ coll: Yoda.basePath + folder }).then((data) => {
let table = '
'
- table += 'Filename | Checksum |
'
+ table += 'Filename | Size | Checksum |
'
$.each(data, function (index, obj) {
table += `
${obj.name} |
+ ${obj.size} |
${obj.checksum} |
`
})
diff --git a/research/templates/research/browse.html b/research/templates/research/browse.html
index f8e15f5b..741504f4 100644
--- a/research/templates/research/browse.html
+++ b/research/templates/research/browse.html
@@ -61,8 +61,7 @@
- This overview shows files and their checksums.
- These checksums can de used to verify data integrity.
+ This overview shows files and their sizes and checksums and can be used to verify data integrity.
The checksum algorithm used is SHA-256.
diff --git a/vault/static/vault/js/vault.js b/vault/static/vault/js/vault.js
index a0ccb93d..39c3fd7a 100644
--- a/vault/static/vault/js/vault.js
+++ b/vault/static/vault/js/vault.js
@@ -74,10 +74,11 @@ $(function () {
{ coll: Yoda.basePath + folder }).then((data) => {
let table = '
'
- table += 'Filename | Checksum |
'
+ table += 'Filename | Size | Checksum |
'
$.each(data, function (index, obj) {
table += `
${obj.name} |
+ ${obj.size} |
${obj.checksum} |
`
})
diff --git a/vault/templates/vault/browse.html b/vault/templates/vault/browse.html
index 5a649639..0f529513 100644
--- a/vault/templates/vault/browse.html
+++ b/vault/templates/vault/browse.html
@@ -126,8 +126,7 @@
- This overview shows files and their checksums.
- These checksums can de used to verify data integrity.
+ This overview shows files and their sizes and checksums and can be used to verify data integrity.
The checksum algorithm used is SHA-256.
diff --git a/vault/vault.py b/vault/vault.py
index b6fa31d8..a90195b9 100644
--- a/vault/vault.py
+++ b/vault/vault.py
@@ -132,13 +132,13 @@ def download_report() -> Response:
ext = '.csv'
if response['status'] == 'ok':
for result in response["data"]:
- output += f"{result['name']},{result['checksum']} \n"
+ output += f"{result['name']},{result['size']},{result['checksum']} \n"
else:
mime = 'text/plain'
ext = '.txt'
if response['status'] == 'ok':
for result in response["data"]:
- output += f"{result['name']} {result['checksum']} \n"
+ output += f"{result['name']} {result['size']} {result['checksum']} \n"
return Response(
output,