It's working... somewhat, but how do i remove duplicates? On Wednesday, 2 January 2013 00:29:28 UTC, DenesL wrote: > > Hi sasogeek, > > try something like this: > > # process first tag > rows = > db((db.contents.msg.contains(mytags[0]))|(db.contents.description.contains(mytags[0]))|(db.contents.tags.contains(mytags[0]))).select() > # process next tags > for tag in mytags[1:]: > > rr=db((db.contents.msg.contains(tag))|(db.contents.description.contains(tag))|(db.contents.tags.contains(tag))).select() > rows=rows&rr > # rows is the result > > Denes >
--

