From cc3214097215c0513bec9dfa34f1a7102249c1c4 Mon Sep 17 00:00:00 2001 From: Rebecca Hankey Date: Wed, 14 May 2025 16:23:43 -0400 Subject: [PATCH] I think that with this app I came to a stopping point. I added the reset roster to the views page. I think that this process, and this semester in general, has challenged me in a way that built my confidence. I said this in a previous message, but I feel much better about my ability to try things and fail, but to not worry that I did irreparable damage to whatever I was working on. This has been such a freeing process and feeling. It makes me excitid to keep trying things rather than nervous or apprehensive. I also have learned the importance of notes and planning. When I write I am a planner, but that some planning process is nothing like the planning I do for computation. I think that the diffferences in the two was tough to understand. I was trying to make my planning process force fit the task. But after being open to trying a different process, things improved! Additioanlly, I did create this app locally since I am still struggling with banjo. I know I said this previously, but if this impacts my overall grade in a drastic way, I would love the chance to make some of that up! Please let me know if you need anything additioanl from me, or if this satisfies that requirements. Thank you again for the opporutnity and the class! It has been awesome! --- project/app/models.py | 2 ++ project/app/views.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/project/app/models.py b/project/app/models.py index 4237a9e..3638757 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -51,3 +51,5 @@ class Roster: def reset_roster(self): """Reset students to their original list (like at the start of the day).""" self.students = self.original_students[:] + + diff --git a/project/app/views.py b/project/app/views.py index c457f66..5b23479 100644 --- a/project/app/views.py +++ b/project/app/views.py @@ -43,4 +43,8 @@ print("Remaining today:", roster.students) roster.reset_roster() print("Next day reset:", roster.students) +remove = roster.remove_student +if not removed: + print ("Student not Found.") +