In the first session of working I planned my work,

I will scan these and save them to the folder for
project. Then I started with the model, since it seemed
easier to start with the process THEN work into
the visual representation of the app.

Recently my struggle and my success are related as I struggled with
banjo. It has not been working on my device so I was concered I would
not be able to make the app. However, similarly to the patch that
you offered me for the Sub Rosa lab, I decided to use the Riddles Server and
app to model my own local app.

I have actually learned a lot from the troubleshooting of this process.
I also have, odd as it may seem, gained a lot of confidence with trial and error
in the terminal. At the beginning I was scared to try and fix problems for
fear that I would do damage that I could not undo. But as I an working
through this semester, it feels more like a puzzle that I can test and retest
my way through rather than being scared of it.
This commit is contained in:
Rebecca Hankey 2025-05-13 17:20:36 -04:00
parent e9ca417321
commit 255d9307fd
2 changed files with 19 additions and 0 deletions

19
project/app/models.py Normal file
View File

@ -0,0 +1,19 @@
import random
class Roster:
"""Needs a roster, place to load it from, a file locater for the
list, and ability to adjust roster"""
def __init__(self):
self.students = []
def load_from_list(self, names):
self.students = names
def get_random_student(self):
if not self.students:
return None
return random.choice(self.students)

0
project/app/views.py Normal file
View File