79334544

Date: 2025-01-06 23:09:37
Score: 1.5
Natty:
Report link

The solution was as Detlef suggested. I just added .all() to the query.

@classmethod
def find_by_purpose_and_id(cls, client_id, purpose):
    return cls.query.
            filter_by(client_id= client_id,purpose=purpose).all()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rual