Files
contracts/History/step-0-critical-fixes-2026-07-14.md
T

19 lines
716 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Step 0: Критические фиксы перед миграцией
**Ветка:** `feature/flask-migration`
**Дата:** 2026-07-14
## Фикс 1: `site/` → `app/` (конфликт с Python stdlib)
`site` — встроенный модуль Python. `from site.db import ...` нестабильно.
Решение: `git mv contracts-flask/site contracts-flask/app`.
Импортов `from site ...` в коде НЕТ (проверено grep), только комментарий в app.js.
## Фикс 2: auth на `/api/cleanup`
Добавить `X-Api-Key` проверку. Значение из `os.environ["API_KEY"]`.
Оба фикса — ДО начала переноса кода.