Logo
Explore Help
Register Sign In
admin/aiagent
1
0
Fork 0
You've already forked aiagent
Code Issues 14 Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
569e3ab7dff383c836c5e32d5b1e9741c4600726
aiagent/backend/scripts/bubble_sort.py

12 lines
304 B
Python
Raw Normal View History

fix: delete agent 500 error + dynamic personality + deployment guide - Fix delete agent 500: clean up FK records (agent_llm_logs, permissions, schedules, executions, team_members) and unbind goals/tasks before delete - Remove hardcoded personality templates in Android, replace with dynamic system prompt generation from name + description - Set promptSectionsEnabled=false to bypass PromptComposer for personality - Add Tencent Cloud Linux deployment guide (Docker Compose) - Accumulated backend service updates, frontend UI fixes, Android app changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-29 01:17:21 +08:00
def bubble_sort(arr):
n = len(arr)
for i in range(n):
swapped = False
for j in range(0, n - i - 1):
if arr[j] > arr[j + 1]:
arr[j], arr[j + 1] = arr[j + 1], arr[j]
swapped = True
if not swapped:
break
return arr
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 296ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API