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