fix(api): improve import_fail_info_bulk lookup for cnr_id and aux_id

- Add aux_id format (author/repo) support in normalize_to_github_id()
- Fix get_module_name() to use URL normalization for unknown_active_nodes
- Use NormalizedKeyDict in reload() to maintain normalized key lookup
This commit is contained in:
Dr.Lt.Data
2025-12-15 02:54:30 +09:00
parent 75f27d99e2
commit 952613c07b
2 changed files with 12 additions and 4 deletions
+6
View File
@@ -74,6 +74,12 @@ def normalize_to_github_id(url) -> str:
return f"{author}/{repo_name}"
# Handle short format like "author/repo" (aux_id format)
if '/' in url and not url.startswith('http'):
parts = url.split('/')
if len(parts) == 2 and parts[0] and parts[1]:
return url
return None