Finished implementing views, updated models

This commit is contained in:
zoeyande2
2026-03-11 13:19:25 -04:00
parent 9927473dad
commit e5133e6f43
3 changed files with 25 additions and 7 deletions

View File

@@ -32,9 +32,8 @@ class Exercise(Model):
return instr
def __repr__(self):
name = self.name
musclegroup = self.musclegroup
instr = self.instructions()
return name+": This is a(n) "+musclegroup+" exercise. Instructions: "+instr
rep = self.to_dict()
rep["instructions"] = self.instructions()
return rep