add type to infoq search query

This commit is contained in:
hillerliao
2022-10-22 10:04:55 +08:00
parent a38d458e7d
commit 8f1c772524
3 changed files with 10 additions and 9 deletions

View File

@@ -73,10 +73,10 @@ def infoq_profile(category=''):
from rsshub.spiders.infoq.profile import ctx
return render_template('main/atom.xml', **filter_content(ctx(category)))
@bp.route('/infoq/search/<string:category>')
def infoq_search(category=''):
@bp.route('/infoq/search/<string:category>/<int:type>')
def infoq_search(category='', type=''):
from rsshub.spiders.infoq.search import ctx
return render_template('main/atom.xml', **filter_content(ctx(category)))
return render_template('main/atom.xml', **filter_content(ctx(category, type)))
@bp.route('/dxzg/notice')
def dxzg_notice():