MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _get_token_st_by_id

Method _get_token_st_by_id

src/services/flow_client.py:341–350  ·  view source on GitHub ↗
(self, token_id: Optional[int])

Source from the content-addressed store, hash-verified

339 return None
340
341 async def _get_token_st_by_id(self, token_id: Optional[int]) -> Optional[str]:
342 if not token_id or self.db is None or not hasattr(self.db, "get_token"):
343 return None
344 try:
345 token = await self.db.get_token(int(token_id))
346 st_value = str(getattr(token, "st", "") or "").strip() if token else ""
347 return st_value or None
348 except Exception as e:
349 debug_logger.log_warning(f"[VIDEO WARMUP] 读取 Token-{token_id} 的 ST 失败: {e}")
350 return None
351
352 async def _make_request(
353 self,

Calls 2

log_warningMethod · 0.80
get_tokenMethod · 0.45

Tested by

no test coverage detected