Skip to content

Commit

Permalink
quote deploy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kagrawal2 committed Dec 29, 2016
1 parent cd4f781 commit ae59f56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/quoteManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from urllib.parse import urlencode
import json
from datetime import datetime
# from app import app, db
from app import app, db


class Quote(object):
Expand Down
5 changes: 3 additions & 2 deletions app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ def suggestQuote(title, description, count=0):
"""
quote = f.get_quote()
print('here')
if quote is not None and len(quote.quote + quote.author) < 201:
if quote is not None:
print('quote found')
return { 'q' : quote.quote, 'author' : quote.author }
if len(quote.quote + quote.author) < 201:
return { 'q' : quote.quote, 'author' : quote.author }
else:
if count < 10:
count += 1
Expand Down

0 comments on commit ae59f56

Please sign in to comment.