From e71daac7d2de302904f91aeb608311c31fd7d5ff Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 7 Jun 2019 13:53:33 +0200 Subject: [PATCH] fix: [backend crawler] rename downloaded archive --- var/www/modules/hiddenServices/Flask_hiddenServices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/www/modules/hiddenServices/Flask_hiddenServices.py b/var/www/modules/hiddenServices/Flask_hiddenServices.py index 72fe6f66..6edf8de7 100644 --- a/var/www/modules/hiddenServices/Flask_hiddenServices.py +++ b/var/www/modules/hiddenServices/Flask_hiddenServices.py @@ -829,8 +829,9 @@ def download_domain(): #dict_links = h.get_all_links(l_pastes) zip_file = h.create_domain_basic_archive(l_pastes) + filename = domain + '.zip' - return send_file(zip_file, attachment_filename='test.zip', as_attachment=True) + return send_file(zip_file, attachment_filename=filename, as_attachment=True) @hiddenServices.route("/hiddenServices/onion_son", methods=['GET'])