修复V1.0模板Jinja2 count过滤器Bug
This commit is contained in:
@@ -11,6 +11,10 @@ from loguru import logger
|
||||
app = Flask(__name__)
|
||||
app.config['JSON_AS_ASCII'] = False
|
||||
|
||||
@app.template_filter('count_item')
|
||||
def count_item(lst, item):
|
||||
return lst.count(item)
|
||||
|
||||
generator = PPTGenerator()
|
||||
|
||||
@app.route('/')
|
||||
|
||||
Reference in New Issue
Block a user