def habitat_groups(): from art17.progress import HabitatProgressTable if flask.request.args.get('table_view'): data = HabitatProgressTable.get_groups(flask.request.args['period']) else: data = HabitatMixin.get_groups(flask.request.args['period']) return flask.jsonify(data)
def habitat_groups(): from art17.progress import HabitatProgressTable if flask.request.args['table_view']: data = HabitatProgressTable.get_groups(flask.request.args['period']) else: data = HabitatMixin.get_groups(flask.request.args['period']) return flask.jsonify(data)
def species_assessors(): data = HabitatMixin.get_assessors( request.args.get('period'), request.args.get('group')) return jsonify(data)
def habitat_regions(): period, country = request.args['period'], request.args['country'] data = HabitatMixin.get_regions_by_country(period, country) return jsonify(data)
def _regions_habitat(): period, subject = request.args['period'], request.args['subject'] data = HabitatMixin.get_regions(period, subject) return jsonify(data)
def _species_habitat(): period, group = request.args['period'], request.args['group'] data = HabitatMixin.get_subjects(period, group) return jsonify(data)