0

I tried to match all users that have the value of 'user_like' in their username or tag by using filter with multiple arguments but it didn't work :

matched_users = User.query.filter(
      User.username.like(f'%{user_like}%'),
      User.tag.like(f'%{user_like}%')
    ).all()

I searched but didn't find any way of doing so, thanks for your help

Yaakov Bressler
  • 9,056
  • 2
  • 45
  • 69
TheGabDooSan
  • 55
  • 1
  • 2
  • 8

0 Answers0