name refactor to make more concise

This commit is contained in:
Matthias 2021-09-22 07:55:47 +02:00
parent a26036a4f9
commit f80a3312ec
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -23,7 +23,7 @@
</tr>
<tr>
<td><span class='fas fa-code-branch'></span></td>
<td>{% trans "Commit Hash" %}</td><td>{{ plugin.commit.commit }}{% include "clip.html" %}</td>
<td>{% trans "Commit Hash" %}</td><td>{{ plugin.commit.hash }}{% include "clip.html" %}</td>
</tr>
<tr>
<td><span class='fas fa-calendar-alt'></span></td>