From db3dc2837e3ef4f683a4a674bc7ddffd2f964af4 Mon Sep 17 00:00:00 2001 From: Joel Gibson Date: Sun, 14 Jan 2018 13:09:44 +1100 Subject: [PATCH] Feed does not require login --- db.py | 1 - server.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/db.py b/db.py index c23e576..3854359 100644 --- a/db.py +++ b/db.py @@ -185,7 +185,6 @@ def get_upvotes_for_memes(memeid): ''',(memeid,)) upvotes = [] for record in cur: - print("Hello world!") upvote = Upvote(record[0], record[1], record[2], record[3]) upvotes.append(upvote) conn.close() diff --git a/server.py b/server.py index b12bf53..775818a 100644 --- a/server.py +++ b/server.py @@ -68,7 +68,6 @@ def handler_(response, *args, **kwargs): response.redirect('/login') return handler_ -@requires_login def index_handler(response): response.redirect('/feed') @@ -151,7 +150,6 @@ def nearby_handler(response): # imgsrc = 'http://i0.kym-cdn.com/entries/icons/mobile/000/006/199/responsibility12(alternate).jpg' -@requires_login def feed_handler(response): dp = 'http://i0.kym-cdn.com/profiles/icons/big/000/132/880/awesome%20face%20shrug.jpg' photo_list = Meme.get_memes_for_category(3)