From 445f33a6b01c65be814dcdd10dfa3526b31c0f4b Mon Sep 17 00:00:00 2001 From: SmartUp Developer Date: Thu, 2 Jul 2026 23:01:09 +0800 Subject: [PATCH] style: remove temporary probe and fix scripts from repository --- backend/fix_account_935.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 backend/fix_account_935.py diff --git a/backend/fix_account_935.py b/backend/fix_account_935.py deleted file mode 100644 index 43c189f..0000000 --- a/backend/fix_account_935.py +++ /dev/null @@ -1,36 +0,0 @@ -import os -import sys -import json - -sys.path.append(os.path.dirname(os.path.abspath(__file__))) - -from app.database import SessionLocal -from app.models.website import Website -from app.routers.websites import _client - -db = SessionLocal() -try: - website = db.query(Website).filter(Website.id == 2).first() - if not website: - print("Error: website wangwang888 (id=2) not found!") - sys.exit(1) - - print(f"Loaded website: {website.name}, URL: {website.base_url}") - - with _client(website) as c: - accounts = c.list_accounts() - acc = next((a for a in accounts if str(c.extract_id(a)) == "935"), None) - if not acc: - print("Error: Account 935 not found on remote site!") - sys.exit(1) - - print(f"Found account 935: {acc.get('name')}, current platform: {acc.get('platform')}") - - res = c.update_account("935", {"platform": "anthropic"}) - print(f"Update response: {res}") - - accounts_new = c.list_accounts() - acc_new = next((a for a in accounts_new if str(c.extract_id(a)) == "935"), None) - print(f"Verified account 935: {acc_new.get('name')}, new platform: {acc_new.get('platform')}") -finally: - db.close()