diff --git a/ckanext/odsh/helpers_tpsh.py b/ckanext/odsh/helpers_tpsh.py index 927313ed03fa9623f92f4f7e2018ed425c918891..a6345f3771cfcc7a7e1834b8968898fcbd9a7a3f 100644 --- a/ckanext/odsh/helpers_tpsh.py +++ b/ckanext/odsh/helpers_tpsh.py @@ -215,11 +215,3 @@ def get_body_mail(organization, package): 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" 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 diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py index 076ca28f029e4798b4b5ba87dc62c3b368ac6aa0..02f683a2931a62493afd712aee83f294fa3398e0 100644 --- a/ckanext/odsh/plugin.py +++ b/ckanext/odsh/plugin.py @@ -374,7 +374,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm 'tpsh_get_resource_size': helpers_tpsh.get_resource_size, 'tpsh_get_address_org':helpers_tpsh.get_address_org, 'tpsh_get_body_mail':helpers_tpsh.get_body_mail, - 'tpsh_git_commit_hash': helpers_tpsh.git_commit_hash, } diff --git a/ckanext/odsh/templates/user/login.html b/ckanext/odsh/templates/user/login.html index d9fb0ad86d0f83803f17eba3fc3175d1825e733d..8efc8821a083a2720d55c02dc6f27429f939463b 100644 --- a/ckanext/odsh/templates/user/login.html +++ b/ckanext/odsh/templates/user/login.html @@ -1,13 +1,8 @@ {% extends "page.html" %} -{% set commit_hash = h.tpsh_git_commit_hash() %} - {% block subtitle %} {{ _('Login') }} {% endblock %} {% block skip %} -<p hidden> - version={{ commit_hash }} -</p> {{ super() }} {% endblock skip %}