Skip to content

Commit

Permalink
working on order_by
Browse files Browse the repository at this point in the history
  • Loading branch information
bart mosley committed Mar 13, 2011
1 parent 14c815a commit aad190c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def count(self):
def filter(self, **kwargs):
# get_data() needs to know if query has been executed since
# conditions was last updated--
# so I'm changing filter is set self.cache to None
# so I'm changing filter to set self.cache to None
self.conditions.update(kwargs)
self.cache = None
return self
Expand Down Expand Up @@ -170,6 +170,8 @@ def order_by(self, field=None, direction='ASC', **kwargs):
" %s %s" % (field, direction)])
joinstr = ","

# need to set cache to None to force query rerun.
self.cache = None
return self

def mult_order_by(self, **kwargs):
Expand Down

0 comments on commit aad190c

Please sign in to comment.