diff --git a/site/app.py b/site/app.py index cd4c02d..e90faaa 100644 --- a/site/app.py +++ b/site/app.py @@ -20,7 +20,7 @@ if _sys_path_root not in sys.path: sys.path.insert(0, _sys_path_root) # Версия приложения (меняется при изменениях) -VERSION = "0.0.11" +VERSION = "0.0.12" def create_app(): diff --git a/site/templates/index.html b/site/templates/index.html index 56bf827..a413656 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -257,22 +257,12 @@ async function uploadFiles() { function downloadZip() { if (!currentSid) return; - const a = document.createElement('a'); - a.href = '/api/download/' + currentSid; - a.download = 'drhider_' + ts() + '.zip'; - document.body.appendChild(a); - a.click(); - document.body.removeChild(a); + window.location = '/api/download/' + currentSid; } function downloadCsv() { if (!currentSid) return; - const a = document.createElement('a'); - a.href = '/api/csv/' + currentSid; - a.download = 'mapping_' + ts() + '.csv'; - document.body.appendChild(a); - a.click(); - document.body.removeChild(a); + window.location = '/api/csv/' + currentSid; }