mirror of https://github.com/MISP/PyTaxonomies
fix: Taxonomy view was broken.
parent
8b9c09b241
commit
6f085c0bf6
|
@ -18,10 +18,11 @@ nav = Nav()
|
||||||
def mynavbar():
|
def mynavbar():
|
||||||
return Navbar(
|
return Navbar(
|
||||||
'MISP taxonomies viewer and editor',
|
'MISP taxonomies viewer and editor',
|
||||||
View('Taxonomies', 'taxonomies'),
|
View('Taxonomies', 'taxonomies', name=None),
|
||||||
View('Search', 'search'),
|
View('Search', 'search')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.secret_key = '<changeme>'
|
app.secret_key = '<changeme>'
|
||||||
Bootstrap(app)
|
Bootstrap(app)
|
||||||
|
@ -51,6 +52,7 @@ def taxonomies(name=None):
|
||||||
else:
|
else:
|
||||||
return render_template('taxonomies.html', all_taxonomies=t)
|
return render_template('taxonomies.html', all_taxonomies=t)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/search', methods=['GET', 'POST'])
|
@app.route('/search', methods=['GET', 'POST'])
|
||||||
def search():
|
def search():
|
||||||
form = SearchForm()
|
form = SearchForm()
|
||||||
|
|
Loading…
Reference in New Issue