v0.0.14: MSK time (UTC+3) — ZIP entries + download filenames
Deploy drhider / validate (push) Waiting to run

This commit is contained in:
2026-07-13 17:05:16 +04:00
parent f3c854c5fb
commit a56a819329
3 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -13,7 +13,7 @@ import io
import json
import zipfile
import traceback
from datetime import datetime
from datetime import datetime, timedelta
from flask import Blueprint, request, send_file, jsonify, Response, stream_with_context
from drhider import obfuscate_files, LLMClient
@@ -133,7 +133,7 @@ def download(sid):
zip_data = get_result(sid)
if zip_data is None:
return jsonify({"ok": False, "error": "Not found"}), 404
ts = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
ts = (datetime.now() + timedelta(hours=3)).strftime("%Y-%m-%d_%H-%M-%S")
return send_file(io.BytesIO(zip_data), mimetype="application/zip",
as_attachment=True, download_name=f"drhider_{ts}.zip")
@@ -144,8 +144,7 @@ def csv_download(sid):
csv_str = get_csv(sid)
if csv_str is None:
return jsonify({"ok": False, "error": "Not found"}), 404
cleanup(sid)
ts = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
ts = (datetime.now() + timedelta(hours=3)).strftime("%Y-%m-%d_%H-%M-%S")
buf = io.BytesIO()
buf.write('\ufeff'.encode('utf-8') + csv_str.encode('utf-8'))
buf.seek(0)