remove git dev

This commit is contained in:
Riley Housden 2022-08-20 01:06:48 -04:00
parent f8a064565a
commit ca58660376
Signed by: InValidFire
GPG Key ID: 0D6208F6DF56B4D8
1 changed files with 3 additions and 3 deletions

View File

@ -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