From e5f29df5c471ca24e60b3672fb77873767161d5a Mon Sep 17 00:00:00 2001 From: Joe Schr Date: Fri, 11 Mar 2022 17:53:29 +0100 Subject: [PATCH] __init__: "develop" check also works with appended to the front version number --- freqtrade/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/__init__.py b/freqtrade/__init__.py index 2747efc96..f1c070800 100644 --- a/freqtrade/__init__.py +++ b/freqtrade/__init__.py @@ -1,12 +1,11 @@ """ Freqtrade bot """ __version__ = 'develop' -if __version__ == 'develop': - +if __version__.endswith('develop'): try: import subprocess - __version__ = 'develop-' + subprocess.check_output( + __version__ = __version__ + '-' + subprocess.check_output( ['git', 'log', '--format="%h"', '-n 1'], stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"')