Skip to content

Commit

Permalink
ServiceLater WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
NiharGharat committed May 11, 2023
1 parent 0851c9c commit a7b59d6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
20 changes: 18 additions & 2 deletions src/Entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,21 @@ def __init__(self, id, name, exercise_importance, exercise_cost, exercise_recurr

class Workout_Derived:

def __init__(self) -> None:
pass
def __init__(self, suggested_wo_completion_percentage, wo_imp, wo_cost, wo_muscles_targetted, wo_rpe, wo_overall_cals) -> None:
self.suggested_wo_completion_percentage: float = suggested_wo_completion_percentage
self.wo_imp: int = wo_imp
self.wo_cost: int = wo_cost
self.wo_muscles_targetted: str = wo_muscles_targetted
self.wo_rpe: int = wo_rpe
self.wo_overall_cals: float = wo_overall_cals

class User:

def __init__(self, id, name, gender, fitness_level, focused_muscle_group, age, goal) -> None:
self.id: id = id
self.name = name
self.gender = gender
self.fitness_level = fitness_level
self.focused_muscle_group = focused_muscle_group
self.age = age
self.goal = goal
4 changes: 3 additions & 1 deletion src/ServiceLayerRecommender.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def recompute_exercises_weights(self, todays_workout: Entities.Workout):
2. Read the workouts table
3. Read the exercise_derived table
4. Read the workout_derived table
5.
5. Read the user table
6. Compute the
'''

def recommend_next_workout(self) -> None:
Expand Down

0 comments on commit a7b59d6

Please sign in to comment.