Skip to content

Commit

Permalink
Fix latest version formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Jul 20, 2023
1 parent 7b3d3e0 commit c5ab46d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exegol/config/ConstantConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class ConstantConfig:
"""Constant parameters information"""
# Exegol Version
version: str = "4.2.4"
version: str = "4.2.5b1"

# Exegol documentation link
documentation: str = "https://exegol.rtfd.io/"
Expand Down
5 changes: 4 additions & 1 deletion exegol/manager/UpdateManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ def isUpdateTag(cls) -> bool:

@classmethod
def display_latest_version(cls) -> str:
return f"[blue]v{DataCache().get_wrapper_data().last_version}[/blue]"
last_version = DataCache().get_wrapper_data().last_version
if len(last_version) == 8 and '.' not in last_version:
return f"[bright_black]\[{last_version}][/bright_black]"
return f"[blue]v{last_version}[/blue]"

@classmethod
def __untagUpdateAvailable(cls, current_version: Optional[str] = None):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_exegol.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == '4.2.4'
assert __version__ == '4.2.5'

0 comments on commit c5ab46d

Please sign in to comment.