MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / update_account

Method update_account

app/services/account_state.py:187–199  ·  view source on GitHub ↗
(self, account: AccountRecord, *, touch_updated_at: bool = False)

Source from the content-addressed store, hash-verified

185 account = AccountRecord.model_validate(item)
186 if schedule_status is not None:
187 account.last_schedule_status = schedule_status.strip() or account.last_schedule_status
188 if schedule_message is not None:
189 account.last_schedule_message = schedule_message.strip()
190 if account_status_message is not None:
191 account.account_status_message = account_status_message.strip()
192 records[index] = account.model_dump()
193 updated_account = account
194 return records
195 raise NotFoundError("账号不存在", details={"account_id": account_id})
196
197 self.accounts_store.update(updater)
198 return updated_account or self.get_account(account_id)
199
200 def rotate_browser_impersonate(self, account_id: str) -> AccountRecord:
201 account = self.get_account(account_id)
202 current = resolve_browser_impersonate(account.browser_impersonate)

Callers 12

update_preferencesMethod · 0.95
set_account_statusMethod · 0.95
bootstrap_accountMethod · 0.80
start_account_flowMethod · 0.80
start_stock_monitorMethod · 0.80
stop_stock_monitorMethod · 0.80
request_pauseMethod · 0.80
_check_stock_onceMethod · 0.80
_run_account_flowMethod · 0.80

Calls 2

utc_now_isoFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected