From 61701770a87ea95f95893053b3487fccfec7cb1e Mon Sep 17 00:00:00 2001 From: Barunes Padhy Date: Fri, 21 Jun 2024 19:28:39 +0300 Subject: [PATCH] Added some print statements --- backend/apimanager/check_updates.py | 2 +- backend/apimanager/utilities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apimanager/check_updates.py b/backend/apimanager/check_updates.py index 5661d36..08d3b62 100644 --- a/backend/apimanager/check_updates.py +++ b/backend/apimanager/check_updates.py @@ -53,7 +53,7 @@ print ('Checking for updates') rangolio_location = settings.DEPLOY_CONFIG["RANGOLIO_LOCATION"] run_git_command('git_fetch_origin', rangolio_location) -updates = run_git_command('git_diff', rangolio_location) +updates = run_git_command('git_diff', rangolio_location, ['origin/development']) print (updates) if updates['subprocess_output'] and updates['subprocess_returncode'] == 0: update_confirmation = draw_dialogue_box('Software Update', 'Would you like to update rangolio?', 'confirmation') diff --git a/backend/apimanager/utilities.py b/backend/apimanager/utilities.py index 0c6cc95..751e3fa 100644 --- a/backend/apimanager/utilities.py +++ b/backend/apimanager/utilities.py @@ -36,7 +36,7 @@ def run_git_command(operation, command_location, parameter=None): "git_add_url": ['git', 'remote', 'add', 'origin'], "git_push": ['git', 'push', '-u', 'origin', 'main'], "git_clone": ['git', 'clone'], - "git_diff": ['git', 'diff', 'origin/main'] + "git_diff": ['git', 'diff'] } return run_command(operation, command_location, git_commands, parameter)