Skip to content
Snippets Groups Projects
Commit d9bd18b0 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Removed git commit hash functionality

parent e1cf96e7
Branches
Tags
2 merge requests!17Stage System soll in Zukunft Master Branch erhalten,!8Removed git commit hash functionality
...@@ -215,11 +215,3 @@ def get_body_mail(organization, package): ...@@ -215,11 +215,3 @@ def get_body_mail(organization, package):
mail_url = "URL: " + url + "%0D%0A" + "%0D%0A" mail_url = "URL: " + url + "%0D%0A" + "%0D%0A"
message = mail_titel + mail_document + mail_url + "Mein Kommentar:" + "%0D%0A" + "%0D%0A" + "%0D%0A" + "%0D%0A" message = mail_titel + mail_document + mail_url + "Mein Kommentar:" + "%0D%0A" + "%0D%0A" + "%0D%0A" + "%0D%0A"
return anrede + message return anrede + message
def git_commit_hash():
current_dir = os.path.dirname(os.path.abspath(__file__))
try:
command = 'git log -n 1 --format=%H'
except:
return 'unknown'
return subprocess.check_output([command], shell=True, cwd=current_dir)
\ No newline at end of file
...@@ -374,7 +374,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -374,7 +374,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
'tpsh_get_resource_size': helpers_tpsh.get_resource_size, 'tpsh_get_resource_size': helpers_tpsh.get_resource_size,
'tpsh_get_address_org':helpers_tpsh.get_address_org, 'tpsh_get_address_org':helpers_tpsh.get_address_org,
'tpsh_get_body_mail':helpers_tpsh.get_body_mail, 'tpsh_get_body_mail':helpers_tpsh.get_body_mail,
'tpsh_git_commit_hash': helpers_tpsh.git_commit_hash,
} }
......
{% extends "page.html" %} {% extends "page.html" %}
{% set commit_hash = h.tpsh_git_commit_hash() %}
{% block subtitle %} {{ _('Login') }} {% endblock %} {% block subtitle %} {{ _('Login') }} {% endblock %}
{% block skip %} {% block skip %}
<p hidden>
version={{ commit_hash }}
</p>
{{ super() }} {{ super() }}
{% endblock skip %} {% endblock skip %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment