ignore
This commit is contained in:
parent
aaa5d44e77
commit
12732949b9
3 changed files with 10 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -36,6 +36,8 @@ out/
|
|||
data/raw/
|
||||
data/raw/prinzip_crm.sqlite
|
||||
data/raw/domrf_photos/
|
||||
# Objective API smoke dumps (ходят в backend/data/raw когда скрипт запускают из backend/)
|
||||
backend/data/raw/
|
||||
*.csv
|
||||
*.csv.zip
|
||||
!backend/db/init/*.sql
|
||||
|
|
|
|||
|
|
@ -42,7 +42,9 @@ def main() -> int:
|
|||
|
||||
end = date.today().replace(day=1)
|
||||
start = (end - timedelta(days=1)).replace(day=1)
|
||||
out_dir = Path("data/raw/objective_smoke") / datetime.utcnow().strftime("%Y%m%d_%H%M%S")
|
||||
# Всегда пишем в <repo>/data/raw/objective_smoke/ независимо от cwd
|
||||
repo_root = Path(__file__).resolve().parent.parent.parent
|
||||
out_dir = repo_root / "data" / "raw" / "objective_smoke" / datetime.utcnow().strftime("%Y%m%d_%H%M%S")
|
||||
out_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -109,7 +109,11 @@ def main() -> int:
|
|||
end_date = date.today()
|
||||
start_date = end_date - timedelta(days=args.days)
|
||||
complex_name = None if args.no_complex else args.complex
|
||||
out_dir = Path("data/raw/objective_test") / datetime.now(timezone.utc).strftime("%Y%m%d_%H%M%S")
|
||||
# Всегда пишем в <repo>/data/raw/objective_test/ независимо от cwd скрипта
|
||||
# (раньше был относительный путь — попадал в backend/data/raw/ когда юзер
|
||||
# запускал из backend/, и эти файлы превышали 512KB pre-commit лимит).
|
||||
repo_root = Path(__file__).resolve().parent.parent.parent
|
||||
out_dir = repo_root / "data" / "raw" / "objective_test" / datetime.now(timezone.utc).strftime("%Y%m%d_%H%M%S")
|
||||
out_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
print(f"=== Objective minimal probe")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue