I may have left out some important info. I am using firebase realtime db.
This solved my problem. I was supposed to loop through by means of key,value.
This solved my problem. I was supposed to loop through by means of key,value.
class Student(Resource): dbStudents = db.reference("/students") students = dbStudents.get() def get(self, name): for key, value in students.items(): if name == value["name"]: return value, 200 return "student not found", 404