mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
@ -57,7 +57,7 @@ def batch_update_api_token_last_used():
|
||||
token_scope_pairs: list[tuple[str, str | None]] = []
|
||||
for key in keys_to_process:
|
||||
# Strip prefix
|
||||
suffix = key[len(ACTIVE_TOKEN_KEY_PREFIX):]
|
||||
suffix = key[len(ACTIVE_TOKEN_KEY_PREFIX) :]
|
||||
# Split into scope:token (scope may be "None")
|
||||
parts = suffix.split(":", 1)
|
||||
if len(parts) == 2:
|
||||
|
||||
@ -337,6 +337,7 @@ class TestEndToEndCacheFlow:
|
||||
ApiTokenCache.set(test_token_value, test_scope, mock_token)
|
||||
|
||||
try:
|
||||
|
||||
def read_cache():
|
||||
return ApiTokenCache.get(test_token_value, test_scope)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user