mirror of
https://github.com/wasrusgen/zov-tech.git
synced 2026-06-03 15:04:50 +00:00
Root cause: _row_for_measurement() returned a positional list based on
_measurement_columns() order, but the actual Google Sheet may have
columns in a different order (if the sheet was created before new
columns were added and _ensure_measurements_sheet() appended them
at the end rather than in the middle). Values ended up in wrong
columns — client_name, manager_tg_id etc. were misaligned, so
_handle_clients couldn't match any rows and returned an empty list.
Fix:
- _row_for_measurement() now returns dict {col_name: value}
- sheets.append_named_row() reads real headers from the sheet and
builds the positional row accordingly — safe regardless of column order
- All three Measurements append calls updated to use append_named_row
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .github/workflows | ||
| backend | ||
| backend-py | ||
| bot | ||
| deploy | ||
| design-drafts | ||
| docs | ||
| miniapp | ||
| .gitignore | ||
| .tmp_ssh.py | ||
| README.md | ||
ZOV Tech — AI-подбор кухонной техники
Telegram-бот + MiniApp для подбора техники под кухню фабрики ЗОВ. Менеджер заполняет с клиентом чек-лист → нейросеть собирает предложение → менеджер получает результат за минуту.
Структура
zov-tech/
├── bot/ — Telegram-бот (Python + aiogram)
├── miniapp/ — MiniApp (HTML + JS, хост на GitHub Pages)
├── backend/ — Google Apps Script (бэкенд + работа с Sheets)
├── docs/ — Документация (ТЗ, deployment, decisions)
└── .claude/ — настройки Claude Code (вне репо)
Стек
| Слой | Технология |
|---|---|
| Бот | Python 3.10+, aiogram 3.x |
| AI | Anthropic Claude (Haiku 4.5) |
| MiniApp | Vanilla JS + HTML, без сборки |
| Backend | Google Apps Script (Web App) |
| БД | Google Sheets (на старте), PostgreSQL (после роста) |
| Хостинг бота | VPS (Selectel / Timeweb) |
| Хостинг MiniApp | GitHub Pages |
Быстрый старт (когда будет код)
cd bot
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -r requirements.txt
copy .env.example .env # заполнить токены
python main.py
Документация
- Техническое задание — полное ТЗ продукта.
Контакты
Куратор / заказчик: Василий (@wasrusgen) Канал: @wasrusgen1