Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#336 : Update mongoengine requirement #344

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def morph(self):
class SteemitArticle:
def __init__(self, article, url):
res = requests.get(url)
html = BeautifulSoup(res.text)
html = BeautifulSoup(res.text, "lxml")
uri = re.match('https://steemit.com/.+/@(.*)', url).groups()[0]
content = html.body.find('script',
attrs={'type': 'application/json'}).text
Expand Down
6 changes: 3 additions & 3 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ def home():

@app.errorhandler(NotFound)
def error_404(e):
return render_template('error.html', code=404)
return render_template('error.html', code=404), 404

@app.errorhandler(Gone)
def error_410(e):
return render_template('error.html', code=410)
return render_template('error.html', code=410), 410

@app.errorhandler(InternalServerError)
def error_500(e):
return render_template('error.html', code=500)
return render_template('error.html', code=500), 500
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Flask==1.1.1
Flask-Login==0.4.0
langdetect==1.0.7
Markdown==2.6.11
mongoengine==0.15.3
mongoengine==0.19.1
Pillow==6.2.1
requests==2.22.0

Expand Down
2 changes: 1 addition & 1 deletion settings.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
DATABASE = {
'db': 'neomad_test',
'username': 'root',
'host': 'localhost'
'host': 'localhost',
'password': '',
'port': int(os.environ.get('DB_PORT', 27017))
}
Expand Down