diff libervia/backend/core/main.py @ 4079:10b6ad569157

version: use standard Python's `dev0` instead of Libervia specific `D` for dev version
author Goffi <goffi@goffi.org>
date Tue, 06 Jun 2023 12:41:53 +0200
parents 7c5654c54fed
children 02f0adc745c6
line wrap: on
line diff
--- a/libervia/backend/core/main.py	Fri Jun 02 18:21:15 2023 +0200
+++ b/libervia/backend/core/main.py	Tue Jun 06 12:41:53 2023 +0200
@@ -113,7 +113,7 @@
         In developement mode, release name and extra data are returned too
         """
         version = self.version
-        if version[-1] == "D":
+        if version.split(".")[-1] == "dev0":
             # we are in debug version, we add extra data
             try:
                 return self._version_cache