Skip to content
This repository has been archived by the owner on Jan 1, 2019. It is now read-only.

Commit

Permalink
Updated filter_by_period
Browse files Browse the repository at this point in the history
  • Loading branch information
Lispython committed May 11, 2013
1 parent 47fa13d commit 140f2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gottwall/storages/base.py
Expand Up @@ -204,7 +204,7 @@ def filter_by_period(self, data, period, from_date=None, to_date=None):

return sorted(ifilter(lambda x: (True if from_date is None else int(x[0]) >= from_date) and \
(True if to_date is None else int(x[0]) <= to_date),
imap(lambda item: (int(item[0]), item[1]), data)),
imap(lambda item: (int(item[0]), int(item[1])), data)),
key=lambda x: x[0])


Expand Down

0 comments on commit 140f2ec

Please sign in to comment.