Skip to content

Commit

Permalink
Use only the short commit hash for the app version
Browse files Browse the repository at this point in the history
  • Loading branch information
pnedkov committed Jan 19, 2024
1 parent 0c396d3 commit 2a546e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipask/ipask.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_app_version():

try:
ver = (
subprocess.check_output(["git", "describe", "--always", "--long"])
subprocess.check_output(["git", "rev-parse", "--short", "HEAD"])
.strip()
.decode()
)
Expand Down
2 changes: 1 addition & 1 deletion ipask/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- Add more rows if needed -->
</table>

<footer>&copy; <span id="current-year"></span> IP Ask {{ app_version }}</footer>
<footer>&copy; <span id="current-year"></span> IP Ask ({{ app_version }})</footer>
<script>
document.getElementById('current-year').textContent = new Date().getFullYear();
</script>
Expand Down

0 comments on commit 2a546e3

Please sign in to comment.