diff --git a/frogpilot/system/environment_variables b/frogpilot/system/environment_variables old mode 100644 new mode 100755 index 0e968181e..aa4750359 Binary files a/frogpilot/system/environment_variables and b/frogpilot/system/environment_variables differ diff --git a/frogpilot/system/environment_variables.backup b/frogpilot/system/environment_variables.backup new file mode 100644 index 000000000..0e968181e Binary files /dev/null and b/frogpilot/system/environment_variables.backup differ diff --git a/frogpilot/system/frogpilot_stats.py b/frogpilot/system/frogpilot_stats.py index 977dfb961..2a202d5b8 100644 --- a/frogpilot/system/frogpilot_stats.py +++ b/frogpilot/system/frogpilot_stats.py @@ -99,14 +99,14 @@ def get_city_center(latitude, longitude): def update_branch_commits(now): points = [] - for branch in ["FrogPilot", "FrogPilot-Staging", "FrogPilot-Testing"]: - try: - response = requests.get(f"https://api.github.com/repos/FrogAi/FrogPilot/commits/{branch}") - response.raise_for_status() - sha = response.json()["sha"] - points.append(Point("branch_commits").field("commit", sha).tag("branch", branch).time(now)) - except Exception as e: - print(f"Failed to fetch commit for {branch}: {e}") + branch = get_build_metadata().channel # Current running branch + try: + response = requests.get(f"https://api.github.com/repos/firestar5683/StarPilot/commits/{branch}") + response.raise_for_status() + sha = response.json()["sha"] + points.append(Point("branch_commits").field("commit", sha).tag("branch", branch).time(now)) + except Exception as e: + print(f"Failed to fetch commit for {branch}: {e}") return points