diff options
author | BonfaceKilz | 2020-11-10 15:40:36 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-11-10 15:40:36 +0300 |
commit | d42e6bc3fb58a087ba64427709034e0adf090524 (patch) | |
tree | 680213176721eee4495c26af697b092725c3fa5d /bh20simplewebuploader | |
parent | 2e2e2280f59b783759b7b70d410fb7a5c59206d5 (diff) | |
download | bh20-seq-resource-d42e6bc3fb58a087ba64427709034e0adf090524.tar.gz bh20-seq-resource-d42e6bc3fb58a087ba64427709034e0adf090524.tar.lz bh20-seq-resource-d42e6bc3fb58a087ba64427709034e0adf090524.zip |
Fetch tweets from the correct redis queue
* bh20simplewebuploader/main.py (send_home): Replace "gn2-tweet-score"
with "bh20-tweet-score".
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 d3b9591..9d27879 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -257,7 +257,7 @@ def send_home(): port=os.environ.get('PORT', 6379), db=os.environ.get('REDIS_DB', 0)) tweets = [] - for tweet_id in redis_client.zrevrange('gn2-tweet-score:', + for tweet_id in redis_client.zrevrange('bh20-tweet-score:', 0, -1): tweets.append( {k.decode("utf-8"): v.decode("utf-8") for k, v in |