diff options
author | BonfaceKilz | 2020-12-07 01:31:55 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-12-07 01:31:55 +0300 |
commit | 81dd50909edd74a0c5fbcd1a4fc259cf1952193d (patch) | |
tree | 3342d507dca6cdf6c02d7aed2d97e3978f3fa485 /bh20simplewebuploader | |
parent | 6814f9d74ca1d7fe4a7a08e5df0878557bd8e8f1 (diff) | |
download | bh20-seq-resource-81dd50909edd74a0c5fbcd1a4fc259cf1952193d.tar.gz bh20-seq-resource-81dd50909edd74a0c5fbcd1a4fc259cf1952193d.tar.lz bh20-seq-resource-81dd50909edd74a0c5fbcd1a4fc259cf1952193d.zip |
Display only 10 tweets on the feed
Diffstat (limited to 'bh20simplewebuploader')
-rw-r--r-- | bh20simplewebuploader/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index d6e5249..b7da171 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -259,7 +259,7 @@ def send_home(): tweets = [] try: for tweet_id in redis_client.zrevrange('bh20-tweet-score:', - 0, -1): + 0, 9): tweets.append( {k.decode("utf-8"): v.decode("utf-8") for k, v in redis_client.hgetall(tweet_id).items()} |