Skip to content

Commit 5607f6d

Browse files
committed
Update mongoengine requirement
- Fix bugs and errors in tests
1 parent a015f5c commit 5607f6d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

blog/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def morph(self):
134134
class SteemitArticle:
135135
def __init__(self, article, url):
136136
res = requests.get(url)
137-
html = BeautifulSoup(res.text)
137+
html = BeautifulSoup(res.text, "lxml")
138138
uri = re.match('https://steemit.com/.+/@(.*)', url).groups()[0]
139139
content = html.body.find('script',
140140
attrs={'type': 'application/json'}).text

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Flask==1.1.1
44
Flask-Login==0.4.0
55
langdetect==1.0.7
66
Markdown==2.6.11
7-
mongoengine==0.15.3
7+
mongoengine==0.19.1
88
Pillow==6.2.1
99
requests==2.22.0
1010

settings.test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
DATABASE = {
99
'db': 'neomad_test',
1010
'username': 'root',
11-
'host': 'localhost'
11+
'host': 'localhost',
1212
'password': '',
1313
'port': int(os.environ.get('DB_PORT', 27017))
1414
}

0 commit comments

Comments
 (0)