NewDay1313

Results 2 comments of NewDay1313

`class Patients(Controller): @post("/patients") async def patients(self, data: FromForm[Login]) -> Response: data = data.value if (Doctors.select().where(Doctors.login == data.login).run()) and (Doctors.select().where(Doctors.password == gen_hash(data.password)).run()): patients = Patients.select().run() response = self.view("patients" ,{"patients": patients}) response.set_cookie(Cookie(str(AUTHORIZED),...

> @NewDay1313 Looks like there's a table called `Patients` but also a controller called `Patients` - looks like the controller is being called when you want the table instead. >...