Use hardcoded version

This commit is contained in:
itay 2019-04-23 14:44:09 +03:00
parent 06f9153976
commit 362b87f72a
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ class Environment(object):
_MONGO_URL = os.environ.get("MONKEY_MONGO_URL", "mongodb://localhost:27017/monkeyisland")
_DEBUG_SERVER = False
_AUTH_EXPIRATION_TIME = timedelta(hours=1)
_MONKEY_VERSION = "1.6.2"
def __init__(self):
self.config = None
@ -44,7 +45,7 @@ class Environment(object):
return self.get_deployment() == 'develop'
def get_version(self):
return self._get_from_config('monkey_version', 'unknown') + ('-dev' if self.is_develop() else '')
return self._MONKEY_VERSION + ('-dev' if self.is_develop() else '')
def _get_from_config(self, key, default_value=None):
val = default_value