diff --git a/tools/essence-feature-usage-stats/stats/essence_file.py b/tools/essence-feature-usage-stats/stats/essence_file.py index f56dc0bd3f..ebc8e159d6 100644 --- a/tools/essence-feature-usage-stats/stats/essence_file.py +++ b/tools/essence-feature-usage-stats/stats/essence_file.py @@ -151,7 +151,7 @@ def __hash__(self): def __eq__(self, other): """EssenceFile objects are considered equal if their paths are the same.""" - return self._fpath == other._fpath + return self.path == other.path def __str__(self): # noqa: D105 return f"EssenceFile({self._fpath}): {self.n_lines} lines" diff --git a/tools/essence-feature-usage-stats/utils/git_utils.py b/tools/essence-feature-usage-stats/utils/git_utils.py index d35e4dacb8..4c439f3d1f 100644 --- a/tools/essence-feature-usage-stats/utils/git_utils.py +++ b/tools/essence-feature-usage-stats/utils/git_utils.py @@ -91,4 +91,5 @@ def parse_repo_url(repo_url: str) -> Tuple[str, str]: return user, repo elements = repo_url.split("/") + return tuple(elements[:2])