Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Dec 25, 2017
1 parent 8594656 commit aba7389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scc/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
If SC-Controller is updated while daemon is running, DAEMON_VERSION send by
daemon will differ one one expected by UI and daemon will be forcefully restarted.
"""
DAEMON_VERSION = "0.4"
DAEMON_VERSION = "0.4.0.1"

HPERIOD = 0.02
LPERIOD = 0.5
Expand Down
4 changes: 3 additions & 1 deletion scc/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,9 @@ def get_release(n=3):
Returns current version rounded to max. 'n' numbers.
( v0.14.1.3 ; n=3 -> v0.14.1 )
"""
return ".".join(DAEMON_VERSION.split(".")[0:n])
split = DAEMON_VERSION.split(".")[0:n]
while split[-1] == "0": split = split[0:len(split) - 1]
return ".".join(split)


def release_notes_visible(self):
Expand Down

0 comments on commit aba7389

Please sign in to comment.