mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-23 05:33:48 +00:00
Resolve backend/open_webui/routers/users.py conflict. - Drop the sync sqlalchemy.orm.Session / get_session / get_db imports kept on this branch; dev has migrated users.py to AsyncSession via get_async_session and that's now the only DB style in this file. - Keep dev's async get_user_groups_by_id (await Groups.get_groups_by_member_id). - Port this branch's POST /interface/settings/reset endpoint to the async DB pattern: accept AsyncSession from get_async_session, build the reset with sqlalchemy.update(...) for postgres (JSONB jsonb_set) and text(...) for sqlite, await db.execute / db.commit / db.rollback, and read rowcount from the update result instead of a follow-up SELECT changes() round-trip. |
||
|---|---|---|
| .. | ||
| data | ||
| open_webui | ||
| .dockerignore | ||
| .gitignore | ||
| dev.sh | ||
| requirements-min.txt | ||
| requirements.txt | ||
| start.sh | ||
| start_windows.bat | ||