aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader
diff options
context:
space:
mode:
authorBonfaceKilz2020-11-10 15:42:00 +0300
committerBonfaceKilz2020-11-10 15:42:00 +0300
commit203293363640e7f45ceaff09fb1a83f8c0f1496a (patch)
tree0e390beba258bf0e6753cfa997316b0b36741b69 /bh20simplewebuploader
parentd42e6bc3fb58a087ba64427709034e0adf090524 (diff)
downloadbh20-seq-resource-203293363640e7f45ceaff09fb1a83f8c0f1496a.tar.gz
bh20-seq-resource-203293363640e7f45ceaff09fb1a83f8c0f1496a.tar.lz
bh20-seq-resource-203293363640e7f45ceaff09fb1a83f8c0f1496a.zip
Delete unused endpoint
* bh20simplewebuploader/main.py (feed): Remove it.
Diffstat (limited to 'bh20simplewebuploader')
-rw-r--r--bh20simplewebuploader/main.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index 9d27879..510df1c 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -664,17 +664,6 @@ def blog_page():
buf = get_html_body('doc/blog/'+blog_content+'.html',"https://github.com/arvados/bh20-seq-resource/blob/master/doc/blog/"+blog_content+".org")
return render_template('blog.html',menu='BLOG',embed=buf,blog=blog_content)
-@app.route('/feed', methods=['GET'])
-def feed():
- redis_client = redis.Redis(host=os.environ.get('HOST', 'localhost'),
- port=os.environ.get('PORT', 6379),
- db=os.environ.get('REDIS_DB', 0))
- tweets = [redis_client.hgetall(tweet_id)
- for tweet_id in redis_client.zrevrange('bh20-tweet-score:',
- 0, -1)]
- return render_template('feed.html',
- menu='FEED',
- tweets=tweets)
@app.route('/about')
def about_page():