Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function zfilter is not usable for datetime type #67

Open
zhangdong046 opened this issue Aug 22, 2016 · 2 comments
Open

function zfilter is not usable for datetime type #67

zhangdong046 opened this issue Aug 22, 2016 · 2 comments

Comments

@zhangdong046
Copy link

1048 for i in self.db.zrange(self.key, 0, -1):
1049 print i, self.db.zscore(self.key, i)
1050 print self.key, min, max
1051 return self.db.zrangebyscore(self.key, min, max, **kwargs)

The key and the score:
1471795200.000000 1.0
1471536000.000000 2.0
The min and max for float datetime:
BBSRecord:post_date 1471708800.0 1472313599.0

@zhangdong046
Copy link
Author

bug --> 653 pipeline.zadd(zindex, score, self.id)

@zhangdong046
Copy link
Author

43 #client = Client()
44 #connection = client.redis()
<-- bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant