fix: 修复模板查询方法名(repo.get替代repo.get_by_id) #1231
Reference in New Issue
Block a user
Delete Branch "fix/preview-resolution-template-query"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
PR #1230 的
_infer_video_ratio_from_template调用了repo.get_by_id(template_id),但SQLAlchemyTemplateRepository没有该方法。实际方法签名是get(template_id, user_id)。staging 日志报错:
AttributeError: SQLAlchemyTemplateRepository object has no attribute get_by_id修复
_infer_video_ratio_from_template改用repo.get(template_id, user_id)user_id参数,路由调用时传入当前用户 ID🚀 预览环境已部署
代码审查结果 - PR #1231
⚠️ 问题(0个需要修改)
无
💡 建议(0个可选)
无
✅ 格式检查通过 | ✅ 逻辑审查通过 | ✅ 性能无明显问题
🤖 由 AI 代码审查机器人自动生成 | 2026-08-03 17:29:35 | 模型:
🗑️ 预览环境已清理
PR #1231 已关闭或合并,对应的预览环境已被清理。