Description: Briefly describe the changes in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Description
I found a function that was defined more than once. Although it didn't cause any other issues, it was still removed to make the code more concise.
Changed
Delete the duplicate function (update_chat_by_id) in backend/apps/web/models/chats.py
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/1241
**Author:** [@7a6ac0](https://github.com/7a6ac0)
**Created:** 3/21/2024
**Status:** ✅ Merged
**Merged:** 3/21/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `duplicate_def`
---
### 📝 Commits (1)
- [`a1412d0`](https://github.com/open-webui/open-webui/commit/a1412d0b55d88980cdf93fa19f02ceae13a05d02) fix: delete duplicate function
### 📊 Changes
**1 file changed** (+0 additions, -14 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/apps/web/models/chats.py` (+0 -14)
</details>
### 📄 Description
## Pull Request Checklist
- [x] **Description:** Briefly describe the changes in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation?
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
---
## Description
I found a function that was defined more than once. Although it didn't cause any other issues, it was still removed to make the code more concise.
### Changed
- Delete the duplicate function (`update_chat_by_id`) in `backend/apps/web/models/chats.py`
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1241
Author: @7a6ac0
Created: 3/21/2024
Status: ✅ Merged
Merged: 3/21/2024
Merged by: @tjbck
Base:
dev← Head:duplicate_def📝 Commits (1)
a1412d0fix: delete duplicate function📊 Changes
1 file changed (+0 additions, -14 deletions)
View changed files
📝
backend/apps/web/models/chats.py(+0 -14)📄 Description
Pull Request Checklist
Description
I found a function that was defined more than once. Although it didn't cause any other issues, it was still removed to make the code more concise.
Changed
update_chat_by_id) inbackend/apps/web/models/chats.py🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.