MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / load_termux_usage_stats

Function load_termux_usage_stats

Scripts/Settings.py:1746–1755  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1744 pass
1745
1746
1747
1748def _add_accessible_sponsor_repositories_to_project_save(repos_dir):
1749 """Checks both Sponsors-Only tiers and adds the ones the connected GitHub account can access."""
1750 status_lines = ["Sponsors-Only access check for DedSec Project Legacy Save:"]
1751 try:
1752 if not shutil.which("gh") or not github_auth_status():
1753 status_lines.append("- GitHub is not connected in gh, so sponsor repositories were not included.")
1754 status_path = os.path.join(repos_dir, "Sponsors-Only Access Status.txt")
1755 with open(status_path, "w", encoding="utf-8") as handle:
1756 handle.write("\n".join(status_lines) + "\n")
1757 return
1758

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected