diff -r f742c525b7b4 -r dfb4b3797113 schema.py --- a/schema.py Wed Dec 02 12:55:41 2009 +0100 +++ b/schema.py Wed Dec 02 12:55:51 2009 +0100 @@ -633,7 +633,7 @@ restriction = 'S eid %(s)s, ' + self.restriction args, ck = {'s': eidfrom}, 's' else: - restriction =rql = 'S eid %(s)s, O eid %(o)s, ' + self.restriction + restriction = 'S eid %(s)s, O eid %(o)s, ' + self.restriction args, ck = {'s': eidfrom, 'o': eidto}, ('s', 'o') rql = 'Any %s WHERE %s' % (self.mainvars, restriction) if self.distinct_query: