From ca5866037697972b74143644c1fa76cc3ecba899 Mon Sep 17 00:00:00 2001 From: Riley Housden Date: Sat, 20 Aug 2022 01:06:48 -0400 Subject: [PATCH] remove git dev --- ext/system.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/system.py b/ext/system.py index 594e8a0..8b50711 100644 --- a/ext/system.py +++ b/ext/system.py @@ -50,9 +50,9 @@ async def get_git_commits_ahead_behind(branch: str, remote: str) -> tuple[int, i return commits_ahead, commits_behind -async def get_git_update(dev_status: bool, branch, remote) -> bool: +async def get_git_update(branch, remote) -> bool: commits_behind, _ = await get_git_commits_ahead_behind(branch, remote) - if not dev_status and commits_behind > 0: + if commits_behind > 0: return True return False @@ -62,7 +62,7 @@ async def get_git_status() -> dict: output["commit_id"] = await get_git_latest_commit_id() output["branch"] = await get_git_branch() output["remote"] = await get_git_remote() - output['update'] = await get_git_update(output['dev'], output['branch'], output['remote']) + output['update'] = await get_git_update(output['branch'], output['remote']) return output