diff --git a/gitfive/lib/xray.py b/gitfive/lib/xray.py index 659d954..deb855b 100644 --- a/gitfive/lib/xray.py +++ b/gitfive/lib/xray.py @@ -74,8 +74,8 @@ def get_repo(token: str, target_username: str, target_id: int, repos_folder: Pat # if username.lower() != target_username.lower(): # => https://github.com/mxrch/GitFive/issues/16 if not username in results["usernames_history"]: results["usernames_history"][username] = {"names": {}} + name = unicode_patch(entity.name) if not entity.name in results["usernames_history"][username]["names"]: - name = unicode_patch(entity.name) results["usernames_history"][username]["names"][name] = {"repos": set()} results["usernames_history"][username]["names"][name]["repos"].add(repo_id) @@ -359,4 +359,4 @@ async def analyze_ext_contribs(runner: GitfiveRunner): if not name in runner.target.usernames_history[username]["names"]: runner.target._add_name(name) # Previous names are valid informations (unless target spoof it) runner.target.usernames_history[username]["names"][name] = {"repos": set()} - runner.target.usernames_history[username]["names"][name]["repos"].add(repo_name) \ No newline at end of file + runner.target.usernames_history[username]["names"][name]["repos"].add(repo_name)