Skip to content

Commit a18b826

Browse files
committed
get_release() - start naming .0 releases without cutting the number off
1 parent 06973c1 commit a18b826

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scc/gui/app.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1516,11 +1516,13 @@ def load_profile_selection(self):
15161516
def get_release(n:int = 4) -> str:
15171517
"""
15181518
Returns current version rounded to max. 'n' numbers.
1519-
( v0.14.1.3 ; n=3 -> v0.14.1 )
1519+
( v0.14.1.3 ; n=3 -> v0.14.1 )
1520+
( v0.14.0.0 ; n=3 -> v0.14.0.0 )
15201521
"""
15211522
split = DAEMON_VERSION.split(".")[0:n]
1522-
while split[-1] == "0":
1523-
split = split[0:len(split) - 1]
1523+
# Remove final zeroes ( v0.14.0.0 ; n=3 -> v0.14 ) - disabled, let's include them
1524+
#while split[-1] == "0":
1525+
# split = split[0:len(split) - 1]
15241526
return ".".join(split)
15251527

15261528

0 commit comments

Comments
 (0)