Skip to content

Commit

Permalink
Feed does not require login
Browse files Browse the repository at this point in the history
  • Loading branch information
joelgibson committed Jan 14, 2018
1 parent 2703aaa commit db3dc28
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 0 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def handler_(response, *args, **kwargs):
response.redirect('/login')
return handler_

@requires_login
def index_handler(response):
response.redirect('/feed')

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit db3dc28

Please sign in to comment.