comparison libervia/web/server/server.py @ 1519:01b8d68edd70

version: use standard Python's `dev0` instead of Libervia specific `D` for dev version
author Goffi <goffi@goffi.org>
date Tue, 06 Jun 2023 17:40:16 +0200
parents eb00d593801d
children a44f77559279
comparison
equal deleted inserted replaced
1518:eb00d593801d 1519:01b8d68edd70
667 667
668 @property 668 @property
669 def full_version(self): 669 def full_version(self):
670 """Return the full version of Libervia (with extra data when in dev mode)""" 670 """Return the full version of Libervia (with extra data when in dev mode)"""
671 version = self.version 671 version = self.version
672 if version[-1] == "D": 672 if version.split(".")[-1] == "dev0":
673 # we are in debug version, we add extra data 673 # we are in debug version, we add extra data
674 try: 674 try:
675 return self._version_cache 675 return self._version_cache
676 except AttributeError: 676 except AttributeError:
677 self._version_cache = "{} ({})".format( 677 self._version_cache = "{} ({})".format(