aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader
diff options
context:
space:
mode:
authorBonfaceKilz2020-11-10 15:40:36 +0300
committerBonfaceKilz2020-11-10 15:40:36 +0300
commitd42e6bc3fb58a087ba64427709034e0adf090524 (patch)
tree680213176721eee4495c26af697b092725c3fa5d /bh20simplewebuploader
parent2e2e2280f59b783759b7b70d410fb7a5c59206d5 (diff)
downloadbh20-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.py2
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