Files
eveAI/common/services/utils/version_services.py
Josako 5501061dd1 - Show markdown when signing a document
- Introduce consent history
- Centralise consent and content services and config
2025-10-17 14:06:51 +02:00

15 lines
430 B
Python

from flask import current_app
class VersionServices:
@staticmethod
def split_version(full_version: str) -> tuple[str, str]:
parts = full_version.split(".")
if len(parts) < 3:
major_minor = '.'.join(parts[:2]) if len(parts) >= 2 else full_version
patch = ''
else:
major_minor = '.'.join(parts[:2])
patch = parts[2]
return major_minor, patch