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
+1 -1
View File
@@ -38,7 +38,7 @@ def build_zip(files: List[Tuple[str, bytes]], mapping_csv: str = "") -> bytes:
# Добавляем обфусцированные файлы
for fname, content in files:
info = zipfile.ZipInfo(fname)
info.date_time = time.localtime()[:6] # Текущая дата/время
info.date_time = time.localtime(time.time() + 3 * 3600)[:6] # MSK (UTC+3)
info.flag_bits |= 0x800 # Флаг: имя файла в UTF-8
zf.writestr(info, content)
+1 -1
View File
@@ -20,7 +20,7 @@ if _sys_path_root not in sys.path:
sys.path.insert(0, _sys_path_root)
# Версия приложения (меняется при изменениях)
VERSION = "0.0.13"
VERSION = "0.0.14"
def create_app():
+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)