From f80a3312ecbb449016724309685b1f9f8c596cfe Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 22 Sep 2021 07:55:47 +0200 Subject: [PATCH] name refactor to make more concise --- InvenTree/plugins/integration/integration.py | 2 +- InvenTree/templates/InvenTree/settings/plugin_settings.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/plugins/integration/integration.py b/InvenTree/plugins/integration/integration.py index 327786f1c6..8e5175b0a6 100644 --- a/InvenTree/plugins/integration/integration.py +++ b/InvenTree/plugins/integration/integration.py @@ -155,7 +155,7 @@ def get_git_log(path): except subprocess.CalledProcessError as _e: print(_e) output = 5 * [''] - return {'commit': output[0], 'author': output[1], 'mail': output[2], 'date': output[3], 'message': output[4]} + return {'hash': output[0], 'author': output[1], 'mail': output[2], 'date': output[3], 'message': output[4]} class IntegrationPlugin(MixinBase, plugin.InvenTreePlugin): diff --git a/InvenTree/templates/InvenTree/settings/plugin_settings.html b/InvenTree/templates/InvenTree/settings/plugin_settings.html index ff639dda9a..dc416971de 100644 --- a/InvenTree/templates/InvenTree/settings/plugin_settings.html +++ b/InvenTree/templates/InvenTree/settings/plugin_settings.html @@ -23,7 +23,7 @@ - {% trans "Commit Hash" %}{{ plugin.commit.commit }}{% include "clip.html" %} + {% trans "Commit Hash" %}{{ plugin.commit.hash }}{% include "clip.html" %}