Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
添加缺少的依赖 修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhanglong committed Mar 24, 2020
1 parent fd1532a commit d417aee
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/utils/templateMaker/spiders/spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import requests
from bs4 import BeautifulSoup
import html5lib


class Spider:
Expand Down
2 changes: 1 addition & 1 deletion app/validators/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class QuestionnaireForm(BaseForm):
isSecret = BooleanField()
secretKey = StringField()
condition = BooleanField()
title = StringField(validators=[Length(max=18, min=3, message="问卷标题长度必须大于%(min)d且小于%(max)d")])
title = StringField(validators=[Length(max=18, min=0, message="问卷标题长度必须小于%(max)d")])
subTitle = StringField()
wechatControl = BooleanField()
ipControl = BooleanField()
Expand Down
3 changes: 2 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from app import createApp
from app.api.error.errorHandler import Success

app = createApp()


@app.route('/')
def hello_world():
return 'Hello World!'
return Success(information="your project is running now~ (◕ᴗ◕✿)")


if __name__ == '__main__':
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Flask-HTTPAuth==3.3.0
Flask-Mail==0.9.1
flask-mongoengine==0.9.5
Flask-WTF==0.14.3
html5lib==1.0.1
idna==2.9
itsdangerous==1.1.0
Jinja2==2.11.1
Expand All @@ -27,5 +28,6 @@ six==1.14.0
soupsieve==2.0
tzlocal==2.0.0
urllib3==1.25.8
webencodings==0.5.1
Werkzeug==1.0.0
WTForms==2.2.1
WTForms==2.2.1

0 comments on commit d417aee

Please sign in to comment.