mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-08 14:56:03 +00:00
feat: support package manager(uv) (#1414)
* chore: set Python version to 3.10 * feat: add pyproject.toml for project configuration and dependencies * style: streamline bot retrieval and update logic in PipelineService * feat: update dependencies and configuration for ruff and pip * chore: remove ruff configuration file * style: change quote style from single to double in ruff configuration * style: unify string quote style to double quotes across multiple files * chore: update .gitignore to include .venv and uv.lock * chore: remove unused configuration files and clean up project structure * chore: revert quote-style to `single` * chore: set default python version to 3.12 --------- Co-authored-by: Junyan Qin <rockchinq@gmail.com>
This commit is contained in:
@@ -98,15 +98,13 @@ class PipelineService:
|
||||
|
||||
if 'name' in pipeline_data:
|
||||
from ....entity.persistence import bot as persistence_bot
|
||||
|
||||
|
||||
result = await self.ap.persistence_mgr.execute_async(
|
||||
sqlalchemy.select(persistence_bot.Bot).where(
|
||||
persistence_bot.Bot.use_pipeline_uuid == pipeline_uuid
|
||||
)
|
||||
sqlalchemy.select(persistence_bot.Bot).where(persistence_bot.Bot.use_pipeline_uuid == pipeline_uuid)
|
||||
)
|
||||
|
||||
|
||||
bots = result.all()
|
||||
|
||||
|
||||
for bot in bots:
|
||||
bot_data = {'use_pipeline_name': pipeline_data['name']}
|
||||
await self.ap.bot_service.update_bot(bot.uuid, bot_data)
|
||||
|
||||
Reference in New Issue
Block a user