Created
April 11, 2017 03:39
-
-
Save anacrolix/6679e8b11f3b9c7d82fa408571442d80 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usage = chunk(redis_cli('hgetall', key+':'+date), 2) | |
usage = map(lambda x: x[:1]+(int(x[1]),)+x[2:], usage) | |
usage = sorted(usage, key=lambda x: x[1], reverse=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment