Skip to content
Snippets Groups Projects
Commit d9d735c6 authored by Noah Jefferson Baumann's avatar Noah Jefferson Baumann
Browse files

adding all option for type filter

parent 690ffe96
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ def get_nodes(): ...@@ -34,7 +34,7 @@ def get_nodes():
if year: if year:
query = query.filter(Node.year == year) query = query.filter(Node.year == year)
if type_filter and type_filter != 'All': if type_filter and type_filter != 'All':
query = query.filter(Node.station_type == type_filter) query = query.filter(Node.type == type_filter)
nodes = query.all() nodes = query.all()
node_list = [node.to_dict() for node in nodes] node_list = [node.to_dict() for node in nodes]
return jsonify(node_list) return jsonify(node_list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment