cli: fix relative volume adjustment #12
No reviewers
Labels
No Label
bug
dependencies
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
art
big
blocked
bug
ci-cd
crash report
disputed
documentation
duplicate
feature request
good first issue
packaging
question
security
techdebt spring cleaning
testing
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Projects/grzegorz-clients#12
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-new-cli-features"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
oops
@ -170,10 +170,11 @@ def set_volume(
if volume.startswith("+") or volume.startswith("-"):
current_volume = api.get_volume()
new_volume = max(0, min(100, current_volume + int(volume)))
new_volume = int(new_volume)
all inputs to max are int, this line should be a noop?
api.get_volume() returns a float, api.set_volume() requires an int
current-volume + int(volume) is a float
could just fix one of them instead of this though