Added Penalty System
This commit is contained in:
25
constants.py
25
constants.py
@@ -12,12 +12,23 @@ VALORANT_RANKS = [
|
||||
"Radiant"
|
||||
]
|
||||
|
||||
def env_int(key: str) -> int:
|
||||
value = os.getenv(key)
|
||||
if value is None:
|
||||
print(f"⚠️ ENV {key} not set, defaulting to 0")
|
||||
return 0
|
||||
return int(value)
|
||||
|
||||
WORKOUTS = {
|
||||
"Sit Ups": int(os.getenv("SITUPS", 0)),
|
||||
"Bicep Curls": int(os.getenv("BICEP_CURLS", 0)),
|
||||
"Pushups": int(os.getenv("PUSHUPS", 0)),
|
||||
"Squats": int(os.getenv("SQUATS", 0)),
|
||||
"Lunges": int(os.getenv("LUNGES", 0)),
|
||||
"Russian Twists": int(os.getenv("RUSSIAN_TWISTS", 0)),
|
||||
"Wall Pushups": int(os.getenv("WALL_PUSHUPS", 0)),
|
||||
"Sit Ups": env_int("SITUPS"),
|
||||
"Bicep Curls": env_int("BICEP_CURLS"),
|
||||
"Pushups": env_int("PUSHUPS"),
|
||||
"Squats": env_int("SQUATS"),
|
||||
"Lunges": env_int("LUNGES"),
|
||||
"Russian Twists": env_int("RUSSIAN_TWISTS"),
|
||||
"Wall Pushups": env_int("WALL_PUSHUPS"),
|
||||
}
|
||||
|
||||
ENABLED_WORKOUTS = {
|
||||
k: v for k, v in WORKOUTS.items() if v > 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user