0

I created query in string format as i had many manipulations within. but couldn't combine the query with actually query:

string='and_(ContentCard.release_date.between("2016-01-01","2017-12-31"),ContentCard.content_type =="Movie",ContentCard.language_codes =="ja",or_(genre_ids.ilike("%35%"),genre_ids.ilike("%16%")))'

I need something like

query = query.filter(string)

If I tried directly, it gives me a format error. Any suggestions?

Daniel Walker
  • 6,380
  • 5
  • 22
  • 45

0 Answers0