apply suggested changes

This commit is contained in:
xs5871
2021-12-05 17:25:19 +00:00
committed by Kyle Brown
parent 4a83e6de85
commit 967046587b
2 changed files with 15 additions and 10 deletions

2
kmk/utils.py Normal file
View File

@@ -0,0 +1,2 @@
def clamp(x, bottom=0, top=100):
return min(max(bottom, x), top)