Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
tcgoetz committed Feb 17, 2024
1 parent 18dfa81 commit 90b9195
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions garmindb/garmindb/activities_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,16 @@ def is_steps_activity(self):
def get_self_eval_feel(self):
"""Return the Garmin Connect self evaluation 'How did you feel' label for the activity."""
levels = [(100, "Very Strong"), (75, "Strong"), (50, "Normal"), (25, "Weak"), (0, "Very Weak")]
for threshold, label in levels:
for threshold, label in levels:
print(f"Threshold {threshold} label {label}")
if self.self_eval_feel >= threshold:
return label

def get_self_eval_effort(self):
"""Return the Garmin Connect self evaluation perceived effort label for the activity."""
levels = [(100, "Maximum"), (90, "Extremely Hard"), (70, "Very Hard"), (50, "Hard"), (40, "Somewhat Hard"), (30, "Moderate"), (20, "Light"), (10, "Very Light"), (0, "None")]
for threshold, label in levels:
levels = [(100, "Maximum"), (90, "Extremely Hard"), (70, "Very Hard"), (50, "Hard"),
(40, "Somewhat Hard"), (30, "Moderate"), (20, "Light"), (10, "Very Light"), (0, "None")]
for threshold, label in levels:
print(f"Threshold {threshold} label {label}")
if self.self_eval_effort >= threshold:
return label
Expand Down

0 comments on commit 90b9195

Please sign in to comment.